Upload source maps

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.

AI wizard

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 like Cursor and Bolt):

Learn more

Otherwise, choose your platform below for manual instructions.

Platforms

Community questions

Was this page useful?

Questions about this page? or post a community question.