@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, 06:00 UTC

main
ts 27 lines 847 Bytes
Raw
1 import * as Axiom from "@alchemy.run/axiom";
2 import * as Cloudflare from "@alchemy.run/cloudflare";
3 import * as Neon from "@alchemy.run/neon";
4 import * as Alchemy from "alchemy";
5 import * as Effect from "effect/Effect";
6 import * as Layer from "effect/Layer";
7 import Api from "./src/Api.ts";
8 import { Dashboard } from "./src/Dashboard.ts";
9
10 export default Alchemy.Stack(
11 "Shorty",
12 {
13 providers: Layer.mergeAll(Cloudflare.providers(), Neon.providers(), Axiom.providers()),
14 state: Alchemy.localState(),
15 },
16 Effect.gen(function* () {
17 const api = yield* Api;
18 const web = yield* Cloudflare.Website.Vite("Web", {
19 dev: { port: 5173 },
20 env: { VITE_API_URL: api.url.as<string>() },
21 });
22
23 const dashboard = yield* Dashboard;
24
25 return { api: api.url.as<string>(), web: web.url, dashboard: dashboard.uid };
26 }),
27 );