We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using next 10.0.3, it seems that async redirects() in the config is ignored if using next-images.
async redirects()
Other config options work fine, but pages which should be redirecting just return 404. Removing next-images fixes the issue.
The text was updated successfully, but these errors were encountered:
For redirects and rewrites to work properly in NextJs, you also need to ensure one more thing:
If you are using trailingSlash: true then your source paths must end with a slash.
trailingSlash: true
{ source: '/old/:id/', // Notice the slash at the end destination: '/new/:id', },
Any other plugins or configurations that interfere with routing also need to be taken into account.
Sorry, something went wrong.
No branches or pull requests
Using next 10.0.3, it seems that
async redirects()
in the config is ignored if using next-images.Other config options work fine, but pages which should be redirecting just return 404. Removing next-images fixes the issue.
The text was updated successfully, but these errors were encountered: