nimbus: live#32181
Conversation
Review🚨 1 critical, Fix in your agentFix the following review findings in PR #32181 (https://github.com/cloudflare/cloudflare-docs/pull/32181).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
After triaging, fix all legitimate findings. For any you decide to skip,
post a comment on this PR with the finding ID and your reasoning.
---
## Code Review
### Critical (1)
#### CR-2e023bfe23fe · Asset directory inconsistent with Worker redirects import
- **File:** `wrangler.jsonc` line 17
- **Issue:** `assets.directory` is changed to `./dist-nimbus`, but `worker/index.ts` (the `main` entry) still imports redirects from `../dist/__redirects`. The Nimbus build outputs to `dist-nimbus/` while the default build outputs to `dist/`, so the production Worker will use stale or missing redirects while serving `dist-nimbus` assets.
- **Fix:** Either update `main` to `worker/index.preview.ts` (which imports `../dist-nimbus/__redirects`) or change `worker/index.ts` to import `../dist-nimbus/__redirects` so redirects and static assets are sourced from the same build output.
### Warnings (1)
#### CR-266a6c612836 · Preview deploy uses default wrangler config for Nimbus artifact
- **File:** `.github/workflows/ci.yml` line 401
- **Issue:** publish-preview now downloads dist-nimbus, but the Deploy to Cloudflare Workers step runs wrangler deploy without --config wrangler.nimbus-preview.json. The separate publish-nimbus-preview job uses that exact config for the same dist-nimbus artifact, so the default config likely expects dist, not dist-nimbus.
- **Fix:** If publish-preview is intended to deploy the Nimbus build, add --config wrangler.nimbus-preview.json to the wrangler deploy commands; otherwise, keep it downloading dist for the default config.
Code ReviewThis code review is in beta and may not always be helpful — use your judgment. Critical (1)
Warnings (1)
ConventionsNo convention issues found. Style Guide ReviewNo style-guide issues found. CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
Nimbus Preview URL: https://nimbus-e096dd5b.preview.developers.cloudflare.com |
|
Preview URL: https://e096dd5b.preview.developers.cloudflare.com |
|
/bonk create a revert PR for this |
|
fatal: couldn't find remote ref nimbus/live |
|
@MohamedH1998 Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
|
/bonk Roll back the Nimbus flip.
Before opening, verify the diff touches EXACTLY these 8 files and nothing else:
|
|
fatal: couldn't find remote ref nimbus/live |
This reverts commit 6ef6c18.
This reverts commit 6ef6c18.
Summary
Flip Nimbus builds to production
Screenshots (optional)
Documentation checklist