Commit 0ecae0aa by lijinqi

配置文件修改

parent 736682ab
......@@ -5,4 +5,4 @@ VITE_APP_TITLE = 先进计算普惠算力公共服务平台
VITE_APP_ENV = 'development'
# 先进计算普惠算力公共服务平台/开发环境
VITE_APP_BASE_API = 'http://47.106.72.238:8086'
VITE_APP_BASE_API = 'http://localhost:8086'
......@@ -25,18 +25,18 @@ export default defineConfig(({ mode, command }) => {
},
// vite 相关配置
server: {
// port: 80,
//port: 18081,
host: true,
open: true,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
'/dev-api': {
target: 'http://47.106.72.238:8086',
target: 'http://localhost:8086',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}
,'http://47.106.72.238:8086': {
target: 'http://47.106.72.238:8086',
,'http://localhost:8086': {
target: 'http://localhost:8086',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment