Configure host 0.0.0.0 for LAN network accessibility across home network

This commit is contained in:
2026-07-23 12:22:54 -04:00
parent 127c0bcac4
commit f7b206707c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -12,8 +12,9 @@ export default defineConfig(() => {
},
},
server: {
host: '0.0.0.0',
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',
// Disable file watching when DISABLE_HMR is true to save CPU during agent edits.
watch: process.env.DISABLE_HMR === 'true' ? null : {},