Upload source maps

Last updated:

|Edit this page|

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.

Choose your platform to view specific instructions.

Questions? Ask Max AI.

It's easier than reading through 698 pages of documentation

Community questions

Was this page useful?

Next article

Upload source maps for Next.js

Add the following to your next.config.js file: Where you should set the following environment variables: Environment Variable Description POSTHOG_API_KEY Personal API key with at least write access on error tracking POSTHOG_ENV_ID Project ID you can find in your project settings NEXT_PUBLIC_POSTHOG_HOST Your PostHog instance URL. Defaults to https://us.posthog.com Before proceeding, confirm that source maps are being generated by checking for .js.map files in your dist directory…

Read next article