You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
814 B
TypeScript
38 lines
814 B
TypeScript
import { defineConfig } from 'umi';
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
ENV: 'dev',
|
|
},
|
|
base: '/',
|
|
publicPath: '/',
|
|
proxy: {
|
|
// '/gateway': {
|
|
// // 'target': 'http://gateway',
|
|
// target: 'https://yule-dev.njhtsz.com',
|
|
// changeOrigin: true,
|
|
// },
|
|
'/api': {
|
|
target: 'http://192.168.1.78:7603/api',
|
|
changeOrigin: true,
|
|
pathRewrite: {
|
|
'^/api': '',
|
|
},
|
|
},
|
|
// '/gateway/idm': {
|
|
// target: 'http://localhost:9110',
|
|
// changeOrigin: true,
|
|
// pathRewrite: {
|
|
// '^/gateway/idm': '',
|
|
// },
|
|
// },
|
|
// '/gateway/esoaservice': {
|
|
// target: 'http://192.168.20.215:10100',
|
|
// changeOrigin: true,
|
|
// pathRewrite: {
|
|
// '^/gateway/esoaservice': '',
|
|
// },
|
|
// },
|
|
},
|
|
});
|