ci(other): cicd
Some checks failed
CI Build & Deploy / build-and-deploy-prod (push) Failing after 3m34s
CI Build & Deploy / build-and-deploy-dev (push) Has been cancelled

This commit is contained in:
2026-01-19 03:12:13 +08:00
commit 17230a9736
158 changed files with 20759 additions and 0 deletions

37
build/constant.js Normal file
View File

@@ -0,0 +1,37 @@
export const OUTPUT_DIR = 'dist'
export const PROXY_CONFIG = {
/**
* @desc 主接口代理
* @请求路径 http://localhost:3100/api/login
* @转发路径 http://localhost:3000/api/login
*/
'/api': {
target: 'https://test.wanzhuanyongcheng.cn',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/store'),
},
/**
* @desc 备用接口代理
* @请求路径 http://localhost:3100/api1/login
* @转发路径 http://localhost:3001/api/login
*/
'/api1': {
target: 'https://api.gxwzwh.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api1/, '/store'),
},
/**
* @desc null
*/
'/admin': {
target: 'https://test.wanzhuanyongcheng.cn',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/admin/, ''),
},
'/admin1': {
target: 'https://api.gxwzwh.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/admin1/, ''),
},
}