next-export-strip-js
TicketWaveHQ/next-export-strip-js
Python
Removes the Next.js runtime from a static export (output: 'export') when no page needs JavaScript: runtime scripts, inline RSC payloads, JS chunks and .txt payload files. Refuses, changing nothing, if the build shows a client component, an unknown script or an inline handler. One Python file, no dependencies.