mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 12:51:15 +02:00
28 lines
701 B
TypeScript
28 lines
701 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as AWS from "alchemy/AWS";
|
|
import * as Effect from "effect/Effect";
|
|
|
|
export default Alchemy.Stack(
|
|
"AwsWebsiteAstroExample",
|
|
{
|
|
providers: AWS.providers(),
|
|
state: AWS.state(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const site = yield* AWS.Website.Astro("Astro", {
|
|
// Only hash the files that affect the build, so unchanged sources
|
|
// skip the Astro build (and the deploy) entirely.
|
|
memo: {
|
|
include: ["src/**", "public/**", "package.json", "astro.config.ts"],
|
|
},
|
|
forceDestroy: true,
|
|
env: {
|
|
GREETING: "Hello from Astro on AWS!",
|
|
},
|
|
});
|
|
|
|
return {
|
|
url: site.url,
|
|
};
|
|
}),
|
|
);
|