自动切换端口

This commit is contained in:
砂糖
2025-08-06 10:59:50 +08:00
parent 5127bb1145
commit 4c312c4865

View File

@@ -45,6 +45,8 @@ export default defineConfig(({ mode, command }) => {
port: 80,
host: true,
open: true,
// 如果端口占用自动切换端口
strictPort: false,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {