From bd099fe2b69ce9a44c1c4e6b35e19ae8e9c3e5c4 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 18 Nov 2026 16:02:28 +1100 Subject: [PATCH] fix(sentry): delete built source maps after upload The delete glob `**/*.map` skips dot folders, so it never reached `.output/`. Every hidden client source map was deployed and served from `/_nuxt/`, and the server maps stayed in the build output. --- nuxt.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index f714f345..b6b8dafe 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -954,7 +954,9 @@ export default defineNuxtConfig({ release: { name: sentryRelease() }, sourcemaps: { disable: !hasSentryAuthToken, - filesToDeleteAfterUpload: ['**/*.map'], + // Name `.output` explicitly: `**` skips dot folders, so the old glob + // deleted nothing and every client map was served from `/_nuxt/`. + filesToDeleteAfterUpload: ['.output/**/*.map'], }, bundleSizeOptimizations: { excludeDebugStatements: true,