.umirc.ts 378 B

123456789101112131415161718
  1. import { defineConfig } from 'umi';
  2. export default defineConfig({
  3. nodeModulesTransform: {
  4. type: 'none',
  5. },
  6. routes: [
  7. { path: '/', component: '@/pages/home/index' },
  8. ],
  9. fastRefresh: {},
  10. proxy: {
  11. '/api': {
  12. 'target': 'http://yhcrm-admin-api.internal.jiebide.xin:881',
  13. 'changeOrigin': true,
  14. 'pathRewrite': { '^/api': '' },
  15. },
  16. },
  17. });