Commit 8eb59ca
committed
build(starlight): service-bind docs worker instead of path route
Cloudflare rejects path-prefixed routes (e.g. inertiacore.net/docs/*)
for Workers with [assets] — they can only bind host-only routes. The
docs worker drops its route block entirely and is reached via a service
binding from the inertiacore.net frontdoor worker, which holds the
host-level route and forwards /docs/* requests through.
- Remove the "Inject Cloudflare route" step from the deploy workflow
since the docs worker no longer needs CF_ROUTE_PATTERN / CF_ZONE_NAME.
- Update wrangler.toml with a comment explaining the service-binding
model and pointing at the splash repo's frontdoor worker config.
- Pin wrangler ^4 so cloudflare/wrangler-action@v3 picks up the project
version instead of falling back to its bundled v3.90.1 parent 8d9e8b2 commit 8eb59ca
4 files changed
Lines changed: 538 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 61 | | |
82 | 62 | | |
83 | 63 | | |
84 | 64 | | |
85 | 65 | | |
86 | 66 | | |
87 | | - | |
88 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
89 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
0 commit comments