meeting/.umirc.js

32 lines
854 B
JavaScript
Raw Normal View History

2023-06-29 18:02:58 +08:00
import { defineConfig } from "umi";
export default defineConfig({
routes: [
{ path: '/', component: 'homePage' },
{ path: "/organization", component: "organization" },
{ path: "/information", component: "information" },
{ path: "/information/detail/:id", component: "information/detail" },
{ path: "/contact", component: "information/detail" },
{ path: "/register", component: "information/detail" },
{ path: "/docs", component: "docs" },
],
npmClient: 'pnpm',
alias: {
2023-07-04 18:53:13 +08:00
img: '/public/image',
http: '/src/utils/request'
2023-06-29 18:02:58 +08:00
},
proxy: {
'/api': {
'target': 'https://testgetway.trustie.net/',
'changeOrigin': true,
// 'pathRewrite': { '^/api' : '' },
},
},
2023-07-04 11:07:44 +08:00
metas: [
{ name: 'viewport', content: '' },
],
2023-07-04 18:53:13 +08:00
plugins: ['@umijs/plugins/dist/model'],
2023-07-06 14:25:04 +08:00
model: {},
hash: true
2023-06-29 18:02:58 +08:00
});