Where are NextJS sourcemaps stored?
Unanswered
Polish posted this in #help-forum
PolishOP
I have two nextjs projects, one that uses app router and one that uses page router. Both are deployed on the Vercel paid plan.
They use TypeScript. Here is my tsconfig.
I don't have a webpack config directly defined since Next seems to be handling this for me. Where are the sourcemaps stored?
They use TypeScript. Here is my tsconfig.
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noImplicitAny": false,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}I don't have a webpack config directly defined since Next seems to be handling this for me. Where are the sourcemaps stored?
6 Replies
PolishOP
bump!
PolishOP
bump 2!
PolishOP
Thank you for the link, @American Crow ! Is this behaviour the same for the "backend" code? E.g App routes, server actions, SSR code/server components, etc? ("Browser" makes me think frontend)
There is one reference to a "serverSourceMaps" in the docs but it is only in the context of disabling it: https://nextjs.org/docs/app/building-your-application/optimizing/memory-usage#disable-source-maps
Is this on by default, and if so, where are they stored?
Is this on by default, and if so, where are they stored?
PolishOP
ping 😦