Commit cfb2065
perf(web): edge-cache public pages; drop static-split build
Take the standard single-Worker path instead of the static-split: add
Cache-Control (s-maxage + stale-while-revalidate) to the public marketing/docs
routes so Cloudflare's CDN serves repeat hits to the same URL without invoking
the Worker. Scoped to public paths only — /api, /dashboard, /sign-in, /sign-up,
/scratchpad stay dynamic/no-store.
Removes the interim static-split artifacts (scripts/build-web-static.mjs,
wrangler.web.jsonc, build:web/deploy:web) — the split fought OpenNext's
single-deployment model and the apex re-routing was too risky for the benefit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 58762b1 commit cfb2065
5 files changed
Lines changed: 30 additions & 121 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
37 | 63 | | |
38 | 64 | | |
39 | 65 | | |
| |||
85 | 111 | | |
86 | 112 | | |
87 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
88 | 118 | | |
89 | 119 | | |
90 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments