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, 06:00 UTC
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | import * as Alchemy from "alchemy"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | import Api from "./src/Api.ts"; |
| 5 | |
| 6 | export default Alchemy.Stack( |
| 7 | "Shorty", |
| 8 | { |
| 9 | providers: Cloudflare.providers(), |
| 10 | state: Alchemy.localState(), |
| 11 | }, |
| 12 | Effect.gen(function* () { |
| 13 | const api = yield* Api; |
| 14 | const web = yield* Cloudflare.Website.Vite("Web", { |
| 15 | dev: { port: 5173 }, |
| 16 | env: { VITE_API_URL: api.url.as<string>() }, |
| 17 | }); |
| 18 | |
| 19 | return { api: api.url.as<string>(), web: web.url }; |
| 20 | }), |
| 21 | ); |