mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 20:01:15 +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>
25 lines
652 B
TypeScript
25 lines
652 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as Cloudflare from "alchemy/Cloudflare";
|
|
import * as Drizzle from "alchemy/Drizzle";
|
|
import * as Effect from "effect/Effect";
|
|
import * as Layer from "effect/Layer";
|
|
|
|
import Api from "./src/Api.ts";
|
|
import { Database } from "./src/Db.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"CloudflareD1DrizzleExample",
|
|
{
|
|
providers: Layer.mergeAll(Cloudflare.providers(), Drizzle.providers()),
|
|
state: Alchemy.localState(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const db = yield* Database;
|
|
const api = yield* Api;
|
|
|
|
return {
|
|
url: api.url.as<string>(),
|
|
databaseName: db.databaseName,
|
|
};
|
|
}),
|
|
);
|