You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
nitesh3539
changed the title
Please support redirect and rewrite rules of Next Js
Please add support for redirect and rewrite rules of Next Js
Aug 27, 2020
So there is redirects / rewrites list in routes-manifest.json after build, which has list of default redirects if you did not specify any (file with trailing slash -> file, and trailing slash redirect).
The plugin currently supports trailing slash redirect but it isn't using the default list, rather it is just checking for trailingSlash prefix or not for better performance.
For custom redirects/rewrites, we could read from routes-manifest.json and if there are any besides the defaults (trailingSlash 308 redirect) or defaults have changed (e.g you want a status other than 308), then use those instead. For perf reasons, probably best to do this after knowing the request is not matched to any other routes (i.e it would have otherwise gone to a 404 page), so the regex doesn't run for all requests to the Lambda.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: