Next.js Discord

Discord Forum

How to upload source maps to production and locate them in browser?

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Avatar
Polar bearOP
I tried this in my tsconfig.json file:
{
  "compilerOptions": {
    // default config
    "sourceMap": true
  },
}


and this in my next.config.js:
{
  productionBrowserSourceMaps: true
}


And still can't locate .map files in the browser.
It's crucial to me for monitoring and debugging

0 Replies