Static Export in Next.js with App Router: JavaScript Files Are Generated Instead of HTML
Unanswered
Inca Dove posted this in #help-forum
Inca DoveOP
I'm having a problem with Next.js and I'm hoping someone can help me. I am using App Router in my project and when I try to export my application as a static site, Next.js generates JavaScript files instead of HTML files.
2 Replies
American Crow
You mixing up static rendering and static export:
https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
@Inca Dove I'm having a problem with Next.js and I'm hoping someone can help me. I am using App Router in my project and when I try to export my application as a static site, Next.js generates JavaScript files instead of HTML files.
Did you add
out: "standalone" in your next config, as I think your wanting export for just static html instead of standalone server