2025-06-27 16:42:11 +08:00
|
|
|
import { defineConfig } from '@umijs/max';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
antd: {},
|
|
|
|
|
access: {},
|
|
|
|
|
model: {},
|
|
|
|
|
initialState: {},
|
|
|
|
|
request: {},
|
|
|
|
|
layout: {},
|
|
|
|
|
npmClient: 'npm',
|
|
|
|
|
define: {
|
|
|
|
|
'process.env.TOKEN_NAME': process.env.TOKEN_NAME,
|
|
|
|
|
'process.env.GUARD_NAME': process.env.GUARD_NAME,
|
|
|
|
|
},
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api/': {
|
2025-06-30 15:56:13 +08:00
|
|
|
// target: 'http://yt:8003',
|
2025-09-18 19:40:30 +08:00
|
|
|
// target: 'http://10.39.13.80:8001',
|
|
|
|
|
// target: 'http://10.39.13.78:8001/',
|
|
|
|
|
target: 'https://test-admin.linyikj.com.cn/',
|
2025-06-29 23:57:51 +08:00
|
|
|
// target: 'http://we6f9c65.natappfree.cc',
|
2025-06-27 16:42:11 +08:00
|
|
|
// target: 'https://loanos-test.nchl.net/',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
pathRewrite: { '^': '' },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|