You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
677 B
23 lines
677 B
export const OUTPUT_DIR = 'dist'
|
|
|
|
export const PROXY_CONFIG = {
|
|
// /**
|
|
// * @desc 替换匹配值
|
|
// * @请求路径 http://localhost:3100/api/user
|
|
// * @转发路径 http://localhost:9999/api/v1 +/user
|
|
// */
|
|
// '/api': {
|
|
// target: 'http://localhost:9999/api/v1',
|
|
// changeOrigin: true,
|
|
// rewrite: (path) => path.replace(new RegExp('^/api'), ''),
|
|
// },
|
|
/**
|
|
* @desc 不替换匹配值
|
|
* @请求路径 http://localhost:3100/api/v1/user
|
|
* @转发路径 http://localhost:9999/api/v1/user
|
|
*/
|
|
'/api/v1': {
|
|
target: 'http://127.0.0.1:8111', // 修改为与.env.development中一致的端口
|
|
changeOrigin: true,
|
|
},
|
|
}
|
|
|