feat: 优化开发服务器配置
- 关闭预览自动弹出页面 - 关闭热更新 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,7 +7,6 @@ yarn-error.log*
|
|||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
|
||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export default defineConfig(() => {
|
|||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
allowedHosts: true as true,
|
allowedHosts: true as true,
|
||||||
cors: true,
|
cors: true,
|
||||||
open: true,
|
hmr: false,
|
||||||
port: 5173
|
port: 5173
|
||||||
},
|
},
|
||||||
// 生产预览服务器配置 (vite preview) - 仅用于本地测试
|
// 生产预览服务器配置 (vite preview) - 仅用于本地测试
|
||||||
|
|||||||
Reference in New Issue
Block a user