@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 34 lines 828 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 "CloudflareWebsiteNuxtExample",
7 {
8 providers: Cloudflare.providers(),
9 state: Cloudflare.state(),
10 },
11 Effect.gen(function* () {
12 const site = yield* Cloudflare.Website.Nuxt("NuxtSite", {
13 // Only hash the files that affect the build, so unchanged sources
14 // skip the Nuxt build (and the deploy) entirely.
15 memo: {
16 include: [
17 "app/**",
18 "server/**",
19 "public/**",
20 "package.json",
21 "nuxt.config.ts",
22 "tsconfig.json",
23 ],
24 },
25 env: {
26 GREETING: "Hello from Nuxt on Cloudflare!",
27 },
28 });
29
30 return {
31 url: site.url,
32 };
33 }),
34 );