Next.js Discord

Discord Forum

Static Export HTML files not behaving as expected

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I built a simple 6 page site with next.js 14 and now that I've exported the files as HTML I want to send them as simple HTML files to the client without any other dependencies. But here's the issue, I've files like index.html, about.html etc. generated from the export now that when I change the url of anchor tags from /about to /about.html for simplicity of navigation it automatically gets changed back to /about and in my case I'm not using the next/link but rather simple anchor tags. Also, if I try and add meta tags in the head for each file it gets replaced when rendered. How do I stop these changes from happening at render time and simply have the things as they are generated in the static HTML files?

0 Replies