diff --git a/src/frontend/overlay/vite.config.js b/src/frontend/overlay/vite.config.js index 2c24a3e34..b42897f20 100644 --- a/src/frontend/overlay/vite.config.js +++ b/src/frontend/overlay/vite.config.js @@ -4,4 +4,7 @@ import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build: { + outDir: process.env.OUT_DIR ?? "dist" + } }); diff --git a/src/frontend/package.json b/src/frontend/package.json index 3f80cda23..a69f4ea4d 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -3,8 +3,8 @@ "version": "3.1.0", "private": true, "scripts": { - "buildOverlay": "npm run build -w overlay", - "buildOverlay2": "npm run build -w overlay", + "buildOverlay": "OUT_DIR=build_old npm run build -w overlay", + "buildOverlay2": "OUT_DIR=build npm run build -w overlay", "buildAdmin": "npm run build -w admin", "lint": "npm run lint -w overlay && npm run lint -w admin" },