1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { defineConfig } from 'umi';
- export default defineConfig({
- nodeModulesTransform: {
- type: 'none',
- },
- routes: [
- {
- path: '/',
- component: '../layouts/index',
- routes: [
- { path: '/', component: '../pages/index' },
- { path: '/vip', component: '../pages/vip' },
- { path: '/login', component: '../pages/login' },
- { path: '/payRecharge', component: '../pages/recharge' },
- {
- path: '/recharge/callback/alipay',
- component: '../pages/recharge/callback/alipay',
- },
- {
- path: '/recharge/callback/wechat',
- component: '../pages/recharge/callback/wechat',
- },
- ],
- },
- ],
- fastRefresh: {},
- define: {
- 'process.env': process.env
- },
- outputPath: './pay',
- proxy: {
- '/api-app': {
- target: 'http://api.timichat.net/api-app/',
- changeOrigin: true,
- pathRewrite: { '^/api-app': '' },
- },
- '/api-common': {
- target: 'http://api.timichat.net',
- changeOrigin: true,
- },
- },
- hash: true,
- });
|