Description
Steps to reproduce
-
Login using the following credentials:
email: [email protected]
password: netlifytest -
On the landing page, click either the "South America" or "Europa" continent chip, or any of the links on the pink sidebar (Inspirationen deutsch or Angebote1)
Expected behavior:
Page is served correctly
Actual behavior:
We get a 404 page
Now repeat the exact same steps but instead of using the reverse-proxy from tourlane.de, visit directly the netlify site (https://traveller-crossing.netlify.app/) you will see that this error doesn't happen. Something interesting to note is that after visiting some of the pages on the netlify site, and going back to try to visit them from the reverse-proxy version (https://www.tourlane.de/traveller-crossing) they will work, as it seems that a cached version is being served.
- Visit https://www.tourlane.de/traveller-crossing/inspiration/south-america
- you will get a 404
- visit https://traveller-crossing.netlify.app/traveller-crossing/inspiration/south-america
- page will be served just fine
- visit https://www.tourlane.de/traveller-crossing/inspiration/south-america again
- page will be served just fine 🤯
There seems to be some configuration off with dynamic routes and reverse-proxy on Netlify using basePath.
This is working in Vercel.
A link to a reproduction repository
No response
Plugin version
@netlify/[email protected]
More information about your build
- I am building using the CLI
- I am building using file-based configuration (
netlify.toml
)
What OS are you using?
No response
Your netlify.toml
file
netlify.toml
[build]
publish = ".next"
[[plugins]]
package = "@netlify/plugin-nextjs"
[[redirects]]
from = "/"
to = "/traveller-crossing"
next.config.js
module.exports = {
reactStrictMode: true,
basePath: '/traveller-crossing',
async redirects() {
return [
{
source: '/',
destination: '/traveller-crossing',
permanent: true,
basePath: false,
},
];
},
};
Relevant log output (or link to your logs)
Build logs
https://app.netlify.com/sites/traveller-crossing/deploys/61b21a476247e800071ebf01