fix: widget build outputs to ./dist instead of sidecar public/

Prevents accidental overwrites of the working widget.js. Use
'npm run deploy' to explicitly build + copy to sidecar public/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-21 14:26:03 +05:30
parent 4b84792619
commit 99954c1ff2

View File

@@ -10,7 +10,7 @@ export default defineConfig({
fileName: () => 'widget.js', fileName: () => 'widget.js',
formats: ['iife'], formats: ['iife'],
}, },
outDir: '../../helix-engage-server/public', outDir: './dist',
emptyOutDir: false, emptyOutDir: false,
minify: 'esbuild', minify: 'esbuild',
rollupOptions: { rollupOptions: {