将端口号8787改为7979
This commit is contained in:
@@ -4,5 +4,5 @@ ENV = 'development'
|
||||
# base路径
|
||||
VITE_BASE_PATH = './'
|
||||
|
||||
# 本地环境接口地址 - 用空字符串走同源,由 vite 代理到 8787,避免 CORS
|
||||
# 本地环境接口地址 - 用空字符串走同源,由 vite 代理到 7979,避免 CORS
|
||||
VITE_AXIOS_BASE_URL = ''
|
||||
|
||||
@@ -29,10 +29,10 @@ const viteConfig = ({ mode }: ConfigEnv): UserConfig => {
|
||||
open: VITE_OPEN != 'false',
|
||||
// 开发时把 /api、/admin、/install 代理到 webman,避免跨域
|
||||
proxy: {
|
||||
'/api': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
'/admin': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
'/install': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
'/plugin': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
'/api': { target: 'http://localhost:7979', changeOrigin: true },
|
||||
'/admin': { target: 'http://localhost:7979', changeOrigin: true },
|
||||
'/install': { target: 'http://localhost:7979', changeOrigin: true },
|
||||
'/plugin': { target: 'http://localhost:7979', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user