import * as AWS from "@alchemy.run/aws";
import * as Alchemy from "alchemy";
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,
};
}),
);