app/worker/wrangler.jsonc
zzmq.dev@gmail.com/zz / app / worker / wrangler.jsonc
@ bec8e72b
Download
Ladder Summary
- file This **wrangler.jsonc** file configures the Cloudflare Worker named `zz‑maintainer`. It specifies the entry point (`src/index.ts`), enables the `workers_dev` subdomain, sets OAuth redirect URIs, defines a wildcard route for `zzmq.dev/*`, binds an R2 bucket (`ARTIFACTS`), a D1 database (`DB`), and a Durable Object (`MAINTAINER_DO` of class `MaintainerDO`), and declares a migration that introduces the `MaintainerDO` SQLite class. **Exported symbols:** none (the file is purely a configuration manifest; the only class referenced is `MaintainerDO`, which is defined elsewhere in the project).
{
"name": "zz-maintainer",
"main": "src/index.ts",
"compatibility_date": "2026-10-01",
"compatibility_flags": ["nodejs_compat"],
// Explicit, not left to wrangler's default -- adding "routes" below
// silently disables the *.workers.dev subdomain unless this is set
// (confirmed live: it broke zz-maintainer.thoward37.workers.dev the
// moment the route was added). Keeping both live matters right now
// specifically because zzmq.dev's DNS isn't provisioned yet, so the
// new route serves nothing reachable until that's done.
"workers_dev": true,
// Left on the old *.workers.dev URI deliberately -- the Cloudflare and
// Google OAuth app registrations (their own dashboards, not anything
// in this repo) still only allow that redirect URI. Flip these to
// https://zzmq.dev/auth/callback/{cloudflare,google} together with
// updating both dashboards' allowed redirect URIs, not before --
// changing only this side breaks login immediately.
"vars": {
"CF_OAUTH_REDIRECT_URI": "https://zz-maintainer.thoward37.workers.dev/auth/callback/cloudflare",
"GOOGLE_OAUTH_REDIRECT_URI": "https://zz-maintainer.thoward37.workers.dev/auth/callback/google"
},
"routes": [
// Exact root ("/") belongs to the docs worker's landing page (see
// site/wrangler.jsonc) -- everything else on zzmq.dev, including
// /explore, is this worker. Cloudflare resolves the more specific
// route (the docs worker's exact "/" match) over this wildcard.
{ "pattern": "zzmq.dev/*", "zone_name": "zzmq.dev" }
],
"artifacts": [
{
"binding": "ARTIFACTS",
"namespace": "zz"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "zz-accounts",
"database_id": "340465c5-bd3b-49cc-878b-fbf8e577b99a"
}
],
"durable_objects": {
"bindings": [
{
"name": "MAINTAINER_DO",
"class_name": "MaintainerDO"
}
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": ["MaintainerDO"]
}
]
}