Group
  • Deployment

    Make my error tracking show real stack traces

    Uploads source maps to the error tracker privately so production errors show original code, not minified garbage.

    • Debug & fix
    • Automate workflows
    • Intermediate
    • General

Free Prompt

My production error tracking reports useless stack traces from minified code. Wire up source maps properly. 1. Confirm the problem: check a recent frontend error in my error tracker (Sentry or equivalent) and confirm the stack trace points at minified bundle positions instead of original source files and lines. 2. Generate: make sure my build produces source maps for production builds (hidden-source-map or the equivalent, so maps exist but are not referenced publicly in the served files). 3. Upload privately: add source map upload to my build/deploy pipeline (Sentry CLI, the provider's webpack/vite plugin, or my tracker's equivalent) so maps go to the error tracker but are NOT served publicly on my site. Tie the upload to release versioning so the tracker matches each error to the exact build that produced it. 4. Verify no public leak: confirm .map files are not accessible on my production domain and that served JS files have no sourceMappingURL comment pointing at a public map. Source maps expose my original source code; they belong in the tracker, not on the CDN. 5. Server errors too: if my backend is transpiled or bundled (TypeScript, esbuild), make sure server-side stack traces also resolve to original files, either via map support in the tracker or by shipping maps with the server build. 6. Prove it: trigger a test error in production (a deliberate throw behind a temporary flag or a known failing route), view it in the tracker, and confirm the trace shows original file names and line numbers. Do not solve this by serving maps publicly; that trades debuggability for giving away source. Do not skip release tagging; without it the tracker guesses which map applies. Give me: the build config changes, the upload step in the pipeline, the release versioning setup, and a screenshot-equivalent description of the resolved test error trace.

What This Does / How This Helps

Uploads source maps privately to your error tracker so production errors show real file names and line numbers instead of minified coordinates. Error tracking without source maps is a paging system that tells you something broke and nothing else. The trace says vendor.a3f9c2.js line 1 column 48213 and you get to guess. Every minute of incident response starts with decoding what should have been readable from the start. The prompt generates maps in the production build, uploads them to the tracker only (not your public site, since maps hand out your source code), tags them by release so they match the right build, and proves the whole chain with a deliberate test error.

Want to skip doing this by hand?

Fortivibe audits your app for all of the areas these prompts cover (and more).

See What We Check

Related Prompts