自动切换端口
This commit is contained in:
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user