fix(app): bind Vite dev server to localhost only

Remove --host flag from dev.sh that was overriding vite.config.ts to
bind on 0.0.0.0. Server now defaults to localhost; use VITE_HOST env
var to opt-in to LAN access for mobile testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-06 01:38:01 +00:00
co-authored by Claude Opus 4.6
parent 6720711302
commit 6d6408e2a4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ else
sleep 0.3
fi
# Start Vite dev server in background
"$BIN/vite" --host &
# Start Vite dev server in background (host binding controlled by vite.config.ts / VITE_HOST)
"$BIN/vite" &
# Wait for all background jobs (compatible with bash 3.2 on macOS)
wait
+1 -1
View File
@@ -131,7 +131,7 @@ export default defineConfig({
},
server: {
port: 5173,
host: true,
host: process.env.VITE_HOST || 'localhost',
open: false,
proxy: {
'/api/claude': {