sourcemaps not being generated #28897
Unanswered
mwoodpatrick
asked this question in
Help
Replies: 2 comments
-
Same here, what am I missing ?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ist this only supported for the app router? I can not find anything regarding the serverSourceMaps property in the pages router docs. In the app router docs i atleast find this config property mentioned in this section https://nextjs.org/docs/app/building-your-application/optimizing/memory-usage#disable-source-maps . As a workaround you might give the webpack based solution in this blog post a shot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an nx monorepo which has a nextjs app (in typescript)
If I run
npx nx build site
then this command mostly respects the setting of:
productionBrowserSourceMaps
in next.config.js except that it does not generate map files for any of my files in the api subdirectory, I would expect that with this setting it would generate source maps for all source files. Does anyone know why it would skip these files or best way to debug?
However, when I run:
it does not appear to generate any map files. I would expect it to always generate source maps.
Does anyone know why this is happening or best way to debug?
Beta Was this translation helpful? Give feedback.
All reactions