1import * as Alchemy from "alchemy";
2import * as AWS from "alchemy/AWS";
3import * as Effect from "effect/Effect";
4
5export default Alchemy.Stack(
6 "AwsStaticSiteExample",
7 {
8 providers: AWS.providers(),
9 state: Alchemy.localState(),
10 },
11 Effect.gen(function* () {
12 const site = yield* AWS.Website.StaticSite("MarketingSite", {
13 path: "./site",
14 // domain: "your.domain.com",
15 forceDestroy: true,
16 invalidation: {
17 paths: "all",
18 },
19 tags: {
20 Example: "aws-static-site",
21 Surface: "website",
22 },
23 });
24
25 return {
26 url: site.url,
27 };
28 }),
29);