zz_

app/worker/wrangler.jsonc

zzmq.dev@gmail.com/zz / app / worker / wrangler.jsonc @ 6ae18ef2 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,
  // Both OAuth dashboards (Cloudflare's and Google's, neither in this
  // repo) were updated to allow the zzmq.dev callback, so this side
  // was flipped to match. Login now only works from zzmq.dev -- the
  // old *.workers.dev host breaks unless its redirect URI is also
  // still registered on both dashboards.
  "vars": {
  "CF_OAUTH_REDIRECT_URI": "https://zzmq.dev/auth/callback/cloudflare",
  "GOOGLE_OAUTH_REDIRECT_URI": "https://zzmq.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"]
  }
  ]
 }