t3-code-android-nightly/.repos/alchemy-effect/examples/aws-static-site/alchemy.run.ts
Julius Marminge bd851c0203
chore: add Alchemy reference repo subtree (#2918)
Co-authored-by: codex <codex@users.noreply.github.com>
2026-06-03 00:08:31 +00:00

29 lines
621 B
TypeScript

import * as Alchemy from "alchemy";
import * as AWS from "alchemy/AWS";
import * as Effect from "effect/Effect";
export default Alchemy.Stack(
"AwsStaticSiteExample",
{
providers: AWS.providers(),
state: Alchemy.localState(),
},
Effect.gen(function* () {
const site = yield* AWS.Website.StaticSite("MarketingSite", {
path: "./site",
// domain: "your.domain.com",
forceDestroy: true,
invalidation: {
paths: "all",
},
tags: {
Example: "aws-static-site",
Surface: "website",
},
});
return {
url: site.url,
};
}),
);