t3-code-android-nightly/.repos/alchemy-effect/examples/gcp-website-astro/alchemy.run.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

27 lines
697 B
TypeScript

import * as Alchemy from "alchemy";
import * as GCP from "alchemy/GCP";
import * as Effect from "effect/Effect";
export default Alchemy.Stack(
"GcpWebsiteAstroExample",
{
providers: GCP.providers(),
state: Alchemy.localState(),
},
Effect.gen(function* () {
const site = yield* GCP.Website.Astro("Astro", {
// Only hash the files that affect the build, so unchanged sources
// skip the Astro build (and the image rebuild) entirely.
memo: {
include: ["src/**", "public/**", "package.json", "astro.config.ts"],
},
env: {
GREETING: "Hello from Astro on Cloud Run!",
},
});
return {
url: site.url,
};
}),
);