Commit 355f798
committed
ci: induce the standalone Next output so the tested bundle can be packaged
`opennextjs-cloudflare build --skipNextBuild` reads
`.next/standalone/apps/docs/.next/server/pages-manifest.json`, and a plain
`next build` writes no `.next/standalone/` at all — so the packaging step
added in the previous commit failed with ENOENT on that path. Measured, not
guessed: CI run 33879772449 on this branch.
The reason is that `output: 'standalone'` is not in `next.config.mjs`;
`@opennextjs/aws` sets `NEXT_PRIVATE_STANDALONE=true` before it runs the Next
build itself, with the comment "Equivalent to setting `output: \"standalone\"`
in next.config.js". Skipping its build skipped that too.
So the env var is set on the `build` job instead of editing
`apps/docs/next.config.mjs`, which is outside this card's file surface and
would change how the app builds for every consumer rather than only in CI.
It must also be declared in `turbo.json`: turbo 2 runs tasks in strict env
mode, so an undeclared variable never reaches `next build` — and declaring it
is what puts it in the cache key, so a `.next` cached from before this change
cannot be replayed without the standalone tree the packaging step needs.
Also adds a TEMPORARY `verify-plumbing` job, removed before merge, that runs
the rollback job's own `gh workflow run` command with the same GITHUB_TOKEN
and `actions: write` and confirms from the API that a run was really created.
That path only ever executes during an outage, and if GITHUB_TOKEN cannot
dispatch a workflow here the automatic rollback would silently never fire.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GkauAsZBEemRbco2rEX9Lx1 parent e7e7258 commit 355f798
3 files changed
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
48 | 68 | | |
49 | 69 | | |
50 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments