mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-21 17:57:44 +02:00
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
31 lines
763 B
TypeScript
31 lines
763 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as Cloudflare from "alchemy/Cloudflare";
|
|
import * as Effect from "effect/Effect";
|
|
import type { Counter } from "./src/worker.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"CloudflareViteDoFixture",
|
|
{
|
|
providers: Cloudflare.providers(),
|
|
state: Cloudflare.state(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const worker = yield* Cloudflare.Website.Vite("ViteDoFixture", {
|
|
assets: {
|
|
runWorkerFirst: ["/api/*"],
|
|
},
|
|
env: {
|
|
Counter: Cloudflare.DurableObject<Counter>("Counter", {
|
|
className: "Counter",
|
|
}),
|
|
},
|
|
memo: {
|
|
include: ["index.html", "src/**", "package.json", "vite.config.ts"],
|
|
},
|
|
});
|
|
|
|
return {
|
|
url: worker.url,
|
|
};
|
|
}),
|
|
);
|