feat: 优化开发服务器配置

- 关闭预览自动弹出页面
- 关闭热更新

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Evan
2026-01-09 20:35:31 +08:00
parent 0b4b053566
commit 42a0efe70b
2 changed files with 2 additions and 3 deletions

3
.gitignore vendored
View File

@@ -7,7 +7,6 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
@@ -24,4 +23,4 @@ dist-ssr
dist.zip
copilot-toolbox.zip
copilot-toolbox/
.trae
.trae

View File

@@ -20,7 +20,7 @@ export default defineConfig(() => {
host: '0.0.0.0',
allowedHosts: true as true,
cors: true,
open: true,
hmr: false,
port: 5173
},
// 生产预览服务器配置 (vite preview) - 仅用于本地测试