Free Production .js.map SourceMap & JS Bundle Leak Checker
Verify whether your live production JavaScript chunks return 404 Protected or 200 EXPOSED for .js.map SourceMaps, and scan shipped client bundles for leaked NEXT_PUBLIC_, VITE_, Stripe, OpenAI, and Supabase secrets.
Framework hardening fixes
Disable public .js.map files without losing stack traces
Pick your stack below to stop shipping original TypeScript sources to browsers while keeping private error symbolication in Sentry.
next.config.mjs
/** @type {import('next').NextConfig} */
const nextConfig = {
// Never serve public .js.map files
productionBrowserSourceMaps: false,
};
export default nextConfig;
vite.config.ts
import { defineConfig } from 'vite';
export default defineConfig({
build: {
// Disable public .js.map output
sourcemap: false,
},
});
Why are public .js.map SourceMaps in production a security risk for Next.js, Vite, Lovable, and Bolt apps?
Production .js.map files contain the original unminified TypeScript/JSX source tree, comments, internal API routes, feature flags, and business logic. Leaving them publicly accessible at HTTP 200 lets scrapers and attackers reconstruct your entire client codebase in seconds.
How do I keep readable stack traces in Sentry without exposing public .js.map files?
Configure hidden source maps (build.sourcemap: "hidden" in Vite or Sentry Next.js plugin with hideSourceMaps: true), upload the .map artifacts privately to Sentry during CI, and delete all *.map files from your static output directory before deploying to production.
What client-side secrets and NEXT_PUBLIC_ / VITE_ leaks does this checker scan for?
This read-only passive scanner inspects homepage HTML and up to 6 same-origin JS chunks for high-entropy production keys (Stripe sk_live_/rk_live_, OpenAI sk-proj-, Anthropic sk-ant-api03-, AWS AKIA, GitHub PATs, Resend, Slack, SendGrid, and decoded Supabase service_role JWTs) plus sensitive NEXT_PUBLIC_ and VITE_ variable markers, always middle-redacting any detected value.