fix: enforce deployment priorities and completely strip client sentry bundle

This commit is contained in:
2026-06-25 22:32:14 +02:00
parent 818ccc8fae
commit e18559b83c
3 changed files with 22 additions and 2 deletions

View File

@@ -46,6 +46,12 @@ const nextConfig = {
env: {
NEXT_PUBLIC_APP_VERSION: process.env.NEXT_PUBLIC_APP_VERSION || process.env.npm_package_version || 'dev',
},
sentry: {
disableClientWebpackPlugin: true,
autoInstrumentServerFunctions: false,
autoInstrumentMiddleware: false,
widenClientFileUpload: false,
},
// Prevent webpack from restarting when .env files are touched via Docker volume mount
webpack: (config, { dev, isServer }) => {
// Completely strip Next.js forced legacy polyfills for modern browser targets