.umirc.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { defineConfig } from 'umi';
  2. export default defineConfig({
  3. nodeModulesTransform: {
  4. type: 'none',
  5. },
  6. routes: [
  7. {
  8. path: '/',
  9. component: '../layouts/index',
  10. routes: [
  11. { path: '/', component: '../pages/index' },
  12. { path: '/vip', component: '../pages/vip' },
  13. { path: '/login', component: '../pages/login' },
  14. { path: '/payRecharge', component: '../pages/recharge' },
  15. {
  16. path: '/recharge/callback/alipay',
  17. component: '../pages/recharge/callback/alipay',
  18. },
  19. {
  20. path: '/recharge/callback/wechat',
  21. component: '../pages/recharge/callback/wechat',
  22. },
  23. ],
  24. },
  25. ],
  26. fastRefresh: {},
  27. define: {
  28. 'process.env': process.env
  29. },
  30. outputPath: './pay',
  31. proxy: {
  32. '/api-app': {
  33. target: 'http://api.timichat.net/api-app/',
  34. changeOrigin: true,
  35. pathRewrite: { '^/api-app': '' },
  36. },
  37. '/api-common': {
  38. target: 'http://api.timichat.net',
  39. changeOrigin: true,
  40. },
  41. },
  42. hash: true,
  43. });