小程序初始提交
This commit is contained in:
21
cool-unix/config/proxy.ts
Normal file
21
cool-unix/config/proxy.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export const proxy = {
|
||||
// 开发环境配置
|
||||
dev: {
|
||||
// 官方测试地址
|
||||
// target: "https://show.cool-admin.com/api",
|
||||
// 本地地址
|
||||
target: "http://127.0.0.1:8001",
|
||||
changeOrigin: true,
|
||||
rewrite: (path: string) => path.replace("/dev", "")
|
||||
},
|
||||
|
||||
// 生产环境配置
|
||||
prod: {
|
||||
// 官方测试地址
|
||||
target: "https://show.cool-admin.com",
|
||||
changeOrigin: true,
|
||||
rewrite: (path: string) => path.replace("/prod", "/api")
|
||||
}
|
||||
};
|
||||
|
||||
export const value = "dev";
|
||||
Reference in New Issue
Block a user