Skip to content

[next]: ensure locale prefixed dynamic routes come before non-prefixed#13003

Merged
ijjk merged 4 commits intomainfrom
ztanner/reorder-dynamic-handling
Feb 4, 2025
Merged

[next]: ensure locale prefixed dynamic routes come before non-prefixed#13003
ijjk merged 4 commits intomainfrom
ztanner/reorder-dynamic-handling

Conversation

@ztanner
Copy link
Copy Markdown
Member

@ztanner ztanner commented Feb 3, 2025

With the experimental flag added in #12916 we added handling to add non-localized redirects for dynamic routes, because we moved the defaultLocale handling to the handle: miss case. However, we need to add these redirects after the less-specific localized routes so that those ones are matched first before the fallback case.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 3, 2025

🦋 Changeset detected

Latest commit: c509461

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/next Patch
vercel Patch

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

ijjk
ijjk previously approved these changes Feb 3, 2025
@ijjk ijjk added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit 3875856 Feb 4, 2025
165 checks passed
@ijjk ijjk deleted the ztanner/reorder-dynamic-handling branch February 4, 2025 16:38
EndangeredMassa pushed a commit that referenced this pull request Feb 5, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [cli] remove warning `projects lists --update-required` about
deprecated node versions
([#13016](#13016))

- [cli] updat vercel/fun to 1.1.4
([#13018](#13018))

- Updated dependencies
\[[`38758561c2cfe9ebae2b1d2af506b585639a2b84`](3875856),
[`150990344d7195c72bb336614153c77d8cefb78c`](1509903)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`150990344d7195c72bb336614153c77d8cefb78c`](1509903)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Enable "demo" property for "react-router" framework
([#13008](#13008))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`ed69811b310bc46347b225f516ff2f7e0817933c`](ed69811),
[`150990344d7195c72bb336614153c77d8cefb78c`](1509903)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- ensure non-locale prefixed route variants come after more specific
ones ([#13003](#13003))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](#12962))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](#12962))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](#12962))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [cli] remove warning `projects lists --update-required` about
deprecated node versions
([#13016](vercel/vercel#13016))

- [cli] updat vercel/fun to 1.1.4
([#13018](vercel/vercel#13018))

- Updated dependencies
\[[`058206a7f6eb9cff485e1c042c4256188e83d0a8`](vercel/vercel@058206a),
[`d981974034b9dac4c381985ac7c946d9cc435c7d`](vercel/vercel@d981974)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`d981974034b9dac4c381985ac7c946d9cc435c7d`](vercel/vercel@d981974)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Enable "demo" property for "react-router" framework
([#13008](vercel/vercel#13008))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`2e6531d89c912ccc6a855ddc0062673515489ad1`](vercel/vercel@2e6531d),
[`d981974034b9dac4c381985ac7c946d9cc435c7d`](vercel/vercel@d981974)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- ensure non-locale prefixed route variants come after more specific
ones ([#13003](vercel/vercel#13003))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](vercel/vercel#12962))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](vercel/vercel#12962))

## @vercel/[email protected]

### Patch Changes

- better path-to-regexp diff logging
([#12962](vercel/vercel#12962))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants