feat: handle rootParams in routes (finish changes)#81086
Merged
lubieowoce merged 2 commits intoJul 9, 2025
Merged
Conversation
Member
|
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
This was referenced Jun 30, 2025
Merged
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
bgub
commented
Jun 30, 2025
| preferredRegion: staticInfo.preferredRegion, | ||
| middlewareConfig: encodeToBase64(staticInfo.middleware || {}), | ||
| middlewareConfig: Buffer.from( | ||
| JSON.stringify(staticInfo.middleware || {}) |
Contributor
Author
There was a problem hiding this comment.
This is the way the file seems to encode in base64 in other places... but I'm not sure if it was different here for a reason. I can also split this off into a separate PR
CodSpeed Performance ReportMerging #81086 will not alter performanceComparing Summary
|
2a607fc to
b4fe9d1
Compare
f6dd34b to
4d895e4
Compare
lubieowoce
approved these changes
Jul 9, 2025
60 of 78 checks passed
lubieowoce
pushed a commit
that referenced
this pull request
Jul 9, 2025
## Enable root params in route handlers
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 9, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 10, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 11, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 17, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 17, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 21, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
lubieowoce
pushed a commit
that referenced
this pull request
Jul 21, 2025
This PR enables the use of root params in route handlers by:
1. Modifying the app route module to extract root params from
context.params based on rootParamNames
2. Passing these root params to the request store in route handlers
3. Removing the error that previously prevented using root params in
route handlers
4. Simplifying the rootParams handling by directly using string arrays
instead of ParamInfo objects
5. Replacing the custom encodeToBase64 utility with standard
Buffer.from().toString('base64')
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Enable root params in route handlers
This PR enables the use of root params in route handlers by:
The changes ensure that route handlers can properly access root params like
lang()andlocale()from the next/root-params API.Fixes #[issue-number]