25 lines
699 B
JavaScript
25 lines
699 B
JavaScript
|
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: {
|
||
|
img: '/public/image'
|
||
|
},
|
||
|
proxy: {
|
||
|
'/api': {
|
||
|
'target': 'https://testgetway.trustie.net/',
|
||
|
'changeOrigin': true,
|
||
|
// 'pathRewrite': { '^/api' : '' },
|
||
|
},
|
||
|
},
|
||
|
});
|