New issue
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
Extra character /
added in path once app deployed
#5955
Comments
Duplicate of #5214 As per the current code this is expected behavior because of https://github.com/zeit/next.js/blob/canary/packages/next-server/lib/router/router.js#L48 Once #5927 lands we can add a build target for exporting with the option to enable/disable this behavior. |
Sounds great. Would be awesome to get such a feature. |
@dbrrt do you using Netlify |
@c0b41 No, I'm not using any asset optimization. |
When using Caddy web server to serve an exported next website, you get the same problems. Nuxt.js solved it by providing an option for how index.html look like after a static export https://nuxtjs.org/api/configuration-generate#subfolders |
Thanks ! |
Bug report
Describe the bug
When I'm deploying a nextjs app, I've got the character
/
appended at the end of the path, which is not appearing during development.To Reproduce
home.js
)/home
if following structurepages/home.js
netlify
), path will be/home/
System information
The text was updated successfully, but these errors were encountered: