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

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