-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[wrangler] Surface _redirects validation warnings at deploy time (#14694) #14709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
allocsys
wants to merge
15
commits into
cloudflare:main
from
allocsys:fix/14694-redirects-deploy-warning
+168
−13
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
80536b3
Extract formatInvalidRedirectsWarning helper for reuse at deploy time
allocsys 9cf08db
Reuse formatInvalidRedirectsWarning in constructRedirects
allocsys 8a35748
Surface _redirects validation warnings at deploy time (fixes #14694, …
allocsys 9208b00
Add deploy-time tests for _redirects validation warning (#14694)
allocsys 48e158d
Add changeset for _redirects deploy-time warning (#14694)
allocsys 4423e21
Trigger CI on fork
allocsys 018173c
Pass htmlHandling to parseRedirects in resolveAssetOptions (fixes clo…
allocsys 627a9d2
Add regression tests: html_handling: "none" must not produce a false …
allocsys 4ef9ffe
Remove leftover fork-CI-trigger comment per NuroDev's review request …
allocsys 90ed703
Drop issue/review references from test names per NuroDev's review req…
allocsys c562cd2
Merge branch 'main' into fix/14694-redirects-deploy-warning
allocsys 175cf65
Add wrangler to changeset front-matter so the deploy-time warning fix…
allocsys 16eb284
Merge branch 'main' into fix/14694-redirects-deploy-warning
allocsys 09c0864
Merge branch 'main' into fix/14694-redirects-deploy-warning
allocsys 5f13481
chore: fix oxfmt trailing-newline violation in changeset
allocsys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| "wrangler": patch | ||
| "@cloudflare/workers-shared": patch | ||
| "@cloudflare/deploy-helpers": patch | ||
| --- | ||
|
|
||
| Surface `_redirects` validation warnings at `wrangler deploy` time | ||
|
|
||
| Previously, invalid `_redirects` rules (e.g. a duplicate rule for the same path, or a file that exceeds the 100-rule dynamic-rule budget and has its remaining lines silently dropped) were only reported as a warning in `wrangler dev`. `wrangler deploy` uploaded the raw `_redirects` file without any client-side validation, so the same issues went completely unreported at deploy time. | ||
|
|
||
| `wrangler deploy` now parses `_redirects` for validation purposes and warns about any invalid rules, using the same messages already shown by `wrangler dev`. This does not change what gets uploaded — the raw file is still uploaded as-is, and the asset worker remains the authoritative parser at runtime. | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.