Use separated client/proxy dev ports across worktrees

This commit is contained in:
Gregory Schier
2026-03-06 09:20:49 -08:00
parent 32f22aad67
commit e26705f016
4 changed files with 247 additions and 68 deletions

View File

@@ -0,0 +1,16 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
build: {
outDir: "../../dist/apps/yaak-proxy",
emptyOutDir: true,
},
clearScreen: false,
server: {
port: parseInt(process.env.YAAK_PROXY_DEV_PORT ?? "2420", 10),
strictPort: true,
},
envPrefix: ["VITE_", "TAURI_"],
});