Open History to see the last commit
1import { defineConfig, triggers } from "cf/config";
2
3export default defineConfig({
4 // The "Personal" account, which owns the trytanstackdb.com zone.
5 accountId: "496bc6a013e5a1d20615c2976e3e16c9",
6 worker: {
7 name: "trytanstackdb-v2",
8 compatibilityDate: "2025-09-02",
9 compatibilityFlags: ["nodejs_compat"],
10 entrypoint: "@tanstack/react-start/server-entry",
11 // The custom domain creates the DNS record for the subdomain.
12 domains: ["v2.trytanstackdb.com"],
13 // The v1 worker (`trytanstackdb`) has a `*.trytanstackdb.com/*` route that
14 // also matches this subdomain and wins over the custom domain. This more
15 // specific route sends v2 traffic to this worker instead.
16 triggers: [triggers.fetch({ pattern: "v2.trytanstackdb.com/*", zone: "trytanstackdb.com" })],
17 },
18});