Search code examples
javascripthtmlreactjsnext.js13

Is it possible to statically export a Nextjs 13 project to only one HTML file?


I'm working with a 13.x.x Nextjs project. The requirement is that I have to export this project statically to only one HTML file. For example, I'm having out folder with several HTML, each for one page in the project, but I want all these page is exported into only one file index.html. Is there any way to do it?

Here the out folder now


Solution

  • No you can't. Each page should have its own html file.