Repository navigation
[cf] Document that prebuilt deploys can omit --mode - #36092
Open
TheVoidJulius wants to merge 2 commits into
Open
TheVoidJulius wants to merge 2 commits into
TheVoidJulius wants to merge 2 commits into
Conversation
TheVoidJulius
requested review from
a team,
GregBrimble,
MattieTK,
WalshyDev,
irvinebroque and
vy-ton
as code owners
December 4, 2026 15:20
Contributor
AI Review✅ Reviewed 👉 Fix in your agent 👈Fix the following review findings in PR #36092 (https://github.com/cloudflare/cloudflare-docs/pull/36092).
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, 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, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.
The comment must come before the commit because the next review reads PR comments.
## Code Review
- C-016e49d9 | src/content/docs/cf/projects/index.mdx:294 | New mode-optional example contradicts earlier statement on the same page
The new example shows a prebuilt deploy with no `--mode`, but a few paragraphs above (in the Modes section) the page still says: "Build Output records the mode it was built with. When you deploy an existing build, pass the same mode." Readers get opposite guidance in the same page.
```txt
cf deploy --prebuilt
```Code ReviewSkipped: no new code changes since the last review.
Commands
|
Contributor
Review coverage🟡 2 ownership areas need approval. Suggested reviewers: @danlapid @irvinebroque
CODEOWNERS mappings for displayed areas (2)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #35430
The guide says to pass
--mode productionwhen deploying a prebuilt Vite build. The CLI also accepts the build without the flag, and only rejects a mode that does not match.Tested with
cf1.0.0-rc.7, Wrangler 4.171.0, and@cloudflare/vite-plugin2.0.0-rc.9 on Windows 11 and Node.js 26.13.0. Nothing was deployed. Aftercf buildrecordedproduction:cf deploy --dry-run --prebuiltexits 0.cf deploy --dry-run --prebuilt --mode productionexits 0.cf deploy --dry-run --prebuilt --mode stagingexits 1 with the message now shown in Troubleshooting.cf workers versions create --dry-runandcf workers checkalso accept--prebuiltwithout a mode. I did not testcf previews deployorcf workers triggers deploy.Documentation checklist