Feature request: Allow static export of Next.js applications with dynamic routes #78814
Closed
adriancuadrado
started this conversation in
Ideas
Replies: 1 comment
-
Duplicate of #55393 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
It should be possible to make static exports when the backend isn't involved even when the route is dynamic even though you'd have to configure the static web server to always return the same file regardless of the path.
For instance, if you are using nodejs and expressjs to serve static files...
and if you have this in public/index.html...
Then you should be able to see the url regardless of the path entered in the web browser.
Apache http server and nginx should have some configurations available to achieve the same, so I think it should be reasonable to allow static exports with dynamic routes. Just make sure to warn the user about this as appropriate and ask him to add some configuration somewhere to remove the warning.
Non-Goals
N/A
Background
With this feature implemented I think we can take more advantage of cheaper static website hosting providers.
Proposal
N/A
Beta Was this translation helpful? Give feedback.
All reactions