Next.js Discord

Discord Forum

js files in static export

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
Hi, what is all this js for in a static export? I'm just curious, my Astro app also has some js, despite both that app and this static export app just being Tailwind and html. No state, nothing imported, etc. Next 14 app router, just a single page

5 Replies

Tomistoma
next.js would at least load the react dom library on every page
i emphasize "browser-side" because when you add a node or vercel adapter, for example, there will be server-side js
Transvaal lionOP
ohhhhhh ok
thank you :D