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
This commit is contained in:
Britannio Jarrett
2025-09-18 08:15:54 +00:00
committed by GitHub
parent 73bc23968d
commit c44edf33cb
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
"version": "0.0.55", "version": "0.0.55",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "VITE_OPEN=${VITE_OPEN:-false} vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"check": "tsc --noEmit", "check": "tsc --noEmit",
"preview": "vite preview", "preview": "vite preview",

View File

@@ -73,6 +73,7 @@ export default defineConfig({
fs: { fs: {
allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")], allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")],
}, },
open: process.env.VITE_OPEN === "true",
}, },
build: { sourcemap: true }, build: { sourcemap: true },
}); });