mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-13 05:47:44 +02:00
29 lines
621 B
TypeScript
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,
|
|
};
|
|
}),
|
|
);
|