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