Fix guide · high · nextjs_dev_in_production
Next.js dev-mode bundle running on production URL
What this rule means
Your deployed page contains Next.js dev-mode markers (next-dev.js, __nextDev).
Why it matters
Dev mode renders the error overlay (which exposes stack traces and source paths to anyone hitting an error), enables React DevTools, and disables minification. The full unminified source is reachable.
How to fix it
- Build with
next buildbefore deploy. Ensure your CI runsnext build, notnext dev. - Verify the build artifact is what's being served —
.next/standalonefor standalone builds, the static export for static sites. - For Vercel, this should never happen unless you've overridden the build command. Check your project settings.
Did vibecheck flag this on your app?
If you reached this page from a vibecheck inspection report, the redacted match in your scan output is the exact string we found in your bundle. After applying the fix above, run the inspection again — the finding should clear.
Run another inspection