-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Pretty Static Export Paths #2944
Comments
Can not be omitted "/". Could you give me an example of what you are saying about the routes. |
So basically, in my But most static hosts actually do support the |
@kennedyrose sounds like a job for custom routes: https://github.com/zeit/next.js/blob/master/examples/with-next-routes/routes.js Although if you're already doing that, then express has an optional param you can pass in called Maybe that'll do it? |
@pruhstal @kennedyrose There's a wiki article for that:tm: https://github.com/zeit/next.js/wiki/Centralizing-Routing Edit: thought this was a different issue 😅 @pruhstal this is specifically directed a @kennedyrose seems like a reasonable request, I'll put it on the backlog 👍 |
This is solved 🎉 |
It is only solved for |
@mrcoles Seems you are right. Hopefully this can be addressed someday 🤷♂️ |
Is there any way to trim the
/
off of the static export output? Many static hosts like GH pages and Netlify support trimming the.html
off of your paths for "pretty" URL paths.But it looks like static export turns all of your
/path/links
to/path/links/
. It'd be nice if there was an option to turn on pretty URL paths for exporting to the static hosts that support them.The text was updated successfully, but these errors were encountered: