The issue involves missing script tags in exported HTML, requiring investigation into Next.js's export behavior.
The issue reports that inline `next/script` tags are missing from statically exported HTML files when using `next export`. The problem persists across versions, including Next.js 16.1.6 with Turbopack. The task involves understanding why script tags are omitted during export and ensuring they are correctly included in the output.
next 13 node 16
No response
No response
I have a script that has a public location and I upload it like this
<Script id="lime">
{`document.body.style.backgroundColor = 'lime'`}
</Script>
after next build && next export when I look at the builded html, there is no link to the script
script tag in index.html
https://stackblitz.com/edit/vercel-next-js-2ncgth
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!