REL-004
Development build is running in production
HighDefault severity · Reliability · SEO, quality and performance
Last reviewed
What it checks
Vite dev client, webpack-dev-server, React development bundles and a Next.js "development" build id in the page.
Why it matters
Development builds are slow, show internal error overlays and expose source code; a dev server is not built to face the internet.
Recommended fix
Deploy the production build (npm run build, then serve the output).
How to verify
Reload the page and confirm the listed development scripts are gone from the page source.
Example fix prompt
Generic prompt (your report adds the evidence)
Please fix this production issue in my app.
Issue REL-004: Development build is running in production
Site: https://your-app.example
First confirm the issue in the code or live config. If it is not present, say so and change nothing.
Task: Make the deployment serve a production build: run the framework’s build command in the deploy pipeline and start the production server or static output, not the dev server. Show me the corrected build and start commands.
Constraints: make the smallest change that fixes this, keep the current design and behaviour, never paste secret values into code or chat, and tell me which files you changed.
Done when: Reload the page and confirm the listed development scripts are gone from the page source.