Repository navigation
Commit dd3b2ad
committed
install-router: co-host staging + prod, fix branch model (main/staging, not master)
get.allow2.com co-hosts staging + prod (like steamdeck/stable + steamdeck/staging),
so the router is now two envs of one worker:
- prod (deploy from main): route get.allow2.com/install, CHANNEL=stable,
manifests install/<p>.json, steamdeck/stable/ pages, indexable.
- staging (deploy from staging): route get.allow2.com/staging, CHANNEL=staging,
manifests staging/install/<p>.json, steamdeck/staging/ pages, and
X-Robots-Tag: noindex,nofollow on EVERY response.
Worker is env-aware via [env.*.vars] (CHANNEL/MANIFEST_BASE/DEFAULT_INSTALL/NOINDEX);
config() defaults are prod-safe. Routes are EXACT so a worker never intercepts its
own manifest sub-path fetches; chooser self-links track the actual route.
Branch model corrected to the ecosystem convention: push main -> --env production,
push staging -> --env staging, PR -> dry-run. ZERO master references.
publish.sh writes the channel-appropriate manifest key (stable -> install/steamdeck.json,
staging -> staging/install/steamdeck.json) and purges it. robots.txt gains
Disallow: /*staging (matches staging anywhere in the path; the noindex header is the
real not-indexed guarantee, robots.txt only controls crawling).
Tests: node --check + harness all pass (incl. staging-noindex / prod-no-header /
channel-correct manifest+fail-safe cases).1 parent a157f8e commit dd3b2ad
7 files changed
Lines changed: 387 additions & 113 deletions
File tree
- .github/workflows
- scripts
- workers/install-router
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
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 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
42 | 73 | | |
43 | 74 | | |
44 | 75 | | |
45 | 76 | | |
46 | 77 | | |
47 | 78 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
3 | 14 | | |
| 15 | + | |
4 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
311 | 312 | | |
312 | | - | |
313 | | - | |
| 313 | + | |
| 314 | + | |
314 | 315 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
321 | 320 | | |
322 | | - | |
323 | | - | |
324 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
325 | 324 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
330 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
341 | 344 | | |
342 | 345 | | |
343 | 346 | | |
344 | | - | |
345 | | - | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | | - | |
| 350 | + | |
348 | 351 | | |
349 | 352 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
401 | | - | |
| 405 | + | |
402 | 406 | | |
403 | 407 | | |
404 | 408 | | |
| |||
407 | 411 | | |
408 | 412 | | |
409 | 413 | | |
410 | | - | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
11 | 40 | | |
12 | 41 | | |
13 | 42 | | |
| |||
26 | 55 | | |
27 | 56 | | |
28 | 57 | | |
29 | | - | |
| 58 | + | |
| 59 | + | |
30 | 60 | | |
31 | 61 | | |
32 | | - | |
| 62 | + | |
| 63 | + | |
33 | 64 | | |
34 | 65 | | |
35 | 66 | | |
| |||
38 | 69 | | |
39 | 70 | | |
40 | 71 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
44 | 78 | | |
45 | 79 | | |
46 | 80 | | |
| |||
101 | 135 | | |
102 | 136 | | |
103 | 137 | | |
104 | | - | |
105 | | - | |
| 138 | + | |
| 139 | + | |
106 | 140 | | |
107 | 141 | | |
108 | 142 | | |
109 | | - | |
| 143 | + | |
| 144 | + | |
110 | 145 | | |
111 | 146 | | |
112 | | - | |
113 | | - | |
| 147 | + | |
| 148 | + | |
114 | 149 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
118 | 155 | | |
119 | 156 | | |
120 | 157 | | |
121 | 158 | | |
122 | 159 | | |
123 | 160 | | |
124 | | - | |
| 161 | + | |
| 162 | + | |
125 | 163 | | |
126 | 164 | | |
127 | 165 | | |
128 | 166 | | |
129 | 167 | | |
130 | | - | |
| 168 | + | |
131 | 169 | | |
| 170 | + | |
132 | 171 | | |
133 | 172 | | |
134 | 173 | | |
135 | 174 | | |
136 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
0 commit comments