Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions apps/api/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"name": "devsprint-api",
"main": "src/index.ts",
"compatibility_date": "2026-07-01",
// Served on its own custom domain, so the zone's rate-limiting rule can sit
// in front of it (ADR-0019's 2026-11-08 note); workers.dev stays on until the
// custom domain is proven, then goes off. No version preview URLs: Cloudflare does
// Served on its own custom domain only, so the zone's rate-limiting rule sits
// in front of every request (ADR-0019's 2026-11-08 note). No version preview URLs: Cloudflare does
// not generate them for a Worker that defines a Durable Object anyway, and
// PR previews are the SPA's alone.
"routes": [{ "pattern": "api.devsprint.elbaymalik.com", "custom_domain": true }],
"workers_dev": true,
"workers_dev": false,
"preview_urls": false,
// Not needed for the echo route, but standard for the AI SDK providers
// arriving in Phase 3 — avoids a config change later.
Expand Down
2 changes: 1 addition & 1 deletion apps/mcp-issues/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// zone's rate-limiting rule covers it (ADR-0019's 2026-11-08 note). A preview version of
// this Worker would write to the production board, so it has none.
"routes": [{ "pattern": "mcp.devsprint.elbaymalik.com", "custom_domain": true }],
"workers_dev": true,
"workers_dev": false,
"preview_urls": false,
"compatibility_flags": ["nodejs_compat"],
"dev": {
Expand Down
5 changes: 3 additions & 2 deletions docs/adr/0019-deploy-topology-and-spa-only-previews.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ refuses a request before it runs the Worker, but zone rules only apply to the zo
never to `*.workers.dev`. So the two Workers that run code move onto the zone, and the zone's rule
covers them.

- `workers_dev` stays on for one deploy, so nothing breaks while the new hostnames get their
certificates. A follow-up turns it off for both, after which the old URLs stop answering.
- `workers_dev` stayed on for one deploy, so nothing broke while the new hostnames got their
certificates. Once they answered, a follow-up turned it off for both, so the old
`devsprint-api` and `devsprint-mcp-issues` workers.dev URLs no longer answer.
- The SPA keeps its `workers.dev` host: PR previews are aliases of it, and an assets-only Worker's
requests are served as static assets, which do not count against the quota.
- The smoke script retries its first request to each new host for up to two minutes, because a
Expand Down
Loading