-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove legacy route prioritization #11798
Conversation
🦋 Changeset detectedLatest commit: 2938241 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked because it contains a major
changeset. A reviewer will merge this at the next release if approved.
// Report route collisions | ||
if (config.experimental.globalRoutePriority) { | ||
for (const [index, higherRoute] of routes.entries()) { | ||
for (const lowerRoute of routes.slice(index + 1)) { | ||
detectRouteCollision(higherRoute, lowerRoute, config, logger); | ||
} | ||
for (const [index, higherRoute] of routes.entries()) { | ||
for (const lowerRoute of routes.slice(index + 1)) { | ||
detectRouteCollision(higherRoute, lowerRoute, config, logger); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a note, this collision report is the warning part that is currently incorrect due to this prioritization happening before the export const prerender
is read from the files.
The entire prioritization is affected, but this is the part that yells at the users, so it is more visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, however we need to address the issue around env
that @bluwy highlighted
Changes
experimental.globalRoutePriority
option, which is now the default and only setting.Testing
Docs