The best way to control Claude Code, Codex and more from any computer or phone

main
ts 27 lines 769 Bytes
Raw
1 import * as Cloudflare from "@alchemy.run/cloudflare";
2 import * as Alchemy from "alchemy";
3 import * as Effect from "effect/Effect";
4
5 export default Alchemy.Stack(
6 "CloudflareWebsiteSvelteKitExample",
7 {
8 providers: Cloudflare.providers(),
9 state: Cloudflare.state(),
10 },
11 Effect.gen(function* () {
12 const site = yield* Cloudflare.Website.SvelteKit("SvelteKitSite", {
13 // Only hash the files that affect the build, so unchanged sources
14 // skip the SvelteKit build (and the deploy) entirely.
15 memo: {
16 include: ["src/**", "static/**", "package.json", "vite.config.ts", "tsconfig.json"],
17 },
18 env: {
19 GREETING: "Hello from SvelteKit on Cloudflare!",
20 },
21 });
22
23 return {
24 url: site.url,
25 };
26 }),
27 );