Skip to content

Commit 4781e7f

Browse files
committed
add 'hidden' explanation
1 parent 39e56b2 commit 4781e7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/platforms/javascript/guides/nuxt/manual-setup.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ export default defineNuxtConfig({
173173

174174
The option `'hidden'` works like `true`, but suppresses the source map reference comments that would be added to the end of each generated file in the build output.
175175

176+
When opening browser developer tools, browsers attempt to fetch source maps through reference comments at the end of bundled files.
177+
After those source maps are uploaded to Sentry during the build process and the SDK removes these client-side source maps, any reference to source maps would trigger 404 errors in the developer tools.
178+
The `'hidden'` option prevents these reference comments from being generated, stopping browsers from attempting to fetch non-existent map files.
179+
This approach eliminates unnecessary network errors in browser developer tools.
180+
176181
Explicitly enabling client source maps is necessary because Nuxt sets default values for source maps ([Nuxt docs](https://nuxt.com/docs/api/nuxt-config#sourcemap)), and the Sentry Nuxt Module keeps these settings when they are explicitly defined.
177182

178183
## Verify

0 commit comments

Comments
 (0)