-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
39 lines (38 loc) · 848 Bytes
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { SERVER_URL } from './config.properties';
import routes from './src/router';
import { defineConfig } from 'umi';
const path = require('path');
export default defineConfig({
extraBabelPlugins: [],
nodeModulesTransform: {
type: 'none',
},
// layout: false,
hash: true,
dynamicImport: {
loading: '@/pageLoading',
},
routes: [
{
path: '/login',
component: '@/pages/login',
},
{
path: '/',
redirect: '/matchmaker',
},
{
path: '/',
component: '@/layouts/index',
routes: routes,
},
],
devServer: { port: 8007 },
proxy: {
'/api': {
target: SERVER_URL,
changeOrigin: true,
pathRewrite: {},
},
},
});