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, 07:15 UTC
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | import * as DomainCloudflare from "@alchemy.run/cloudflare/Domain"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | import * as Layer from "effect/Layer"; |
| 5 | import { CountersLive, serve } from "./counter-model.ts"; |
| 6 | |
| 7 | /** |
| 8 | * The same Worker as `eu-worker.ts`, on the unrestricted default platform. |
| 9 | * Deploying one over the other switches the model's jurisdiction in place. |
| 10 | */ |
| 11 | export default class DomainCounterWorker extends Cloudflare.Worker<DomainCounterWorker>()( |
| 12 | "DomainCounterWorker", |
| 13 | { main: import.meta.url }, |
| 14 | serve("unrestricted").pipe( |
| 15 | Effect.provide(CountersLive.pipe(Layer.provide(DomainCloudflare.layerDurableObjects()))), |
| 16 | ), |
| 17 | ) {} |