diff --git a/packages/trace-viewer/vite.sw.config.ts b/packages/trace-viewer/vite.sw.config.ts index a0dd99036a..60e90b96ac 100644 --- a/packages/trace-viewer/vite.sw.config.ts +++ b/packages/trace-viewer/vite.sw.config.ts @@ -35,9 +35,10 @@ export default defineConfig({ '@web': path.resolve(__dirname, '../web/src'), }, }, + publicDir: false, build: { + // outputs into the public dir, where the build of vite.config.ts will pick it up outDir: path.resolve(__dirname, 'public'), - // Output dir is shared with vite.config.ts, clearing it here is racy. emptyOutDir: false, rollupOptions: { input: {