fix(owner-tools): define process.env.NODE_ENV for browser bundle
All checks were successful
ci/woodpecker/push/build Pipeline was successful

Fixes ReferenceError: process is not defined in production

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Josh 2026-01-12 03:05:45 +02:00
parent 6ba25d0113
commit 5c34bef790

View file

@ -47,6 +47,11 @@ export default defineConfig(({ command }) => ({
fileName: () => 'owner-tools.js' fileName: () => 'owner-tools.js'
}, },
outDir: '../../internal/tenant/assets/js', outDir: '../../internal/tenant/assets/js',
emptyOutDir: false emptyOutDir: false,
rollupOptions: {
output: {
intro: 'const process = { env: { NODE_ENV: "production" } };'
}
}
} }
})) }))