From c44edf33cbe2368870de7f9bc005b972804137a4 Mon Sep 17 00:00:00 2001 From: Britannio Jarrett <33752528+britannio@users.noreply.github.com> Date: Thu, 18 Sep 2025 08:15:54 +0000 Subject: [PATCH] open the frontend by default when running the dev command (#717) * open the frontend by default when running the dev command * change the VITE_OPEN default to false --- frontend/package.json | 2 +- frontend/vite.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index fc3b08c0..43aada60 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "version": "0.0.55", "type": "module", "scripts": { - "dev": "vite", + "dev": "VITE_OPEN=${VITE_OPEN:-false} vite", "build": "tsc && vite build", "check": "tsc --noEmit", "preview": "vite preview", diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 8f293ef5..f0ae9a29 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -73,6 +73,7 @@ export default defineConfig({ fs: { allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")], }, + open: process.env.VITE_OPEN === "true", }, build: { sourcemap: true }, });