.umirc.ts 374 B

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