Repository navigation
Commit cdfe878
Put the config guard inside the build that people actually run
Removing the GitHub vars from the wrangler files left
`production:config:check` still expecting them, and I found that by looking
rather than by running anything — the guard is not part of `npm run build`,
so a full green local run proves nothing about it. That is exactly how the
Google callback slipped through on 10 August: the deploy failed in CI,
production sat on new schema with old code until a second deploy landed.
Twice is a pattern, and the pattern is not carelessness — it is a check
that only ever runs somewhere I am not. So it moves into `build`, right
after `orbit:validate`: before the slow asset work, so a config mistake
fails in seconds rather than after a full site build.
The guard itself now expects one callback and no owner ID, matching the
configs. The comment about deriving the URL from `expected.origin` stays,
because the reason survives the second provider leaving: a literal string
would compare equal in precisely the case worth catching, live and
dark-launch crossed.
Local proof: `npm run build` end to end, now including 78 config
assertions.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 7f11c5f commit cdfe878
2 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
214 | 210 | | |
215 | | - | |
216 | 211 | | |
217 | 212 | | |
218 | 213 | | |
| |||
232 | 227 | | |
233 | 228 | | |
234 | 229 | | |
235 | | - | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
| |||
0 commit comments