批量更新
This commit is contained in:
@@ -28,8 +28,10 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
port: 4000,
|
||||
// 开发时前端在 4000,接口走相对路径 /platform/*、/backend/*,转发到本地 Go(当前 httpport=9000)
|
||||
port: 4400,
|
||||
// 端口被占用时直接报错,不再自动漂移到其他端口(避免回跳地址与实际端口不一致)
|
||||
strictPort: true,
|
||||
// 开发时前端在 4400,接口走相对路径 /platform/*、/backend/*,转发到本地 Go(当前 httpport=9000)
|
||||
proxy: {
|
||||
"/platform": {
|
||||
target: "http://127.0.0.1:9000",
|
||||
|
||||
Reference in New Issue
Block a user