Skill 76 · Instrument Error Tracking
Subchapter 76.28
references/upload-source-maps.mdMarkdown4 KBView on GitHub
AI agents: this is one page from PostHog’s docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt (opens in a new tab)
If you serve compiled or minified code, PostHog requires source maps to generate accurate stack traces.
If your source maps are not publicly hosted, you will need to upload them during your build process to see unminified code in your stack traces.
If you’re using a JavaScript or TypeScript framework, set up source map uploading automatically with our wizard by running this command in your project directory with your terminal (it also works for LLM coding agents (opens in a new tab) like Cursor and Bolt):
npx @posthog/wizard upload-source-maps
Otherwise, choose your platform below for manual instructions.
Ask PostHog AI
HelpfulCould be better