serve frontend on port 3005

This commit is contained in:
2026-05-03 00:34:10 +08:00
parent c6e39984a5
commit d5a6b1c935
2 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --port=3000 --host=0.0.0.0",
"dev": "vite --port=3005 --host=0.0.0.0",
"backend": "python ../web_backend.py",
"build": "vite build",
"preview": "vite preview",

View File

@@ -16,6 +16,9 @@ export default defineConfig(({mode}) => {
},
},
server: {
host: '0.0.0.0',
port: 3005,
strictPort: true,
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',