-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
45 lines (44 loc) · 1.06 KB
/
.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
40
41
42
43
44
45
import { defineConfig } from "umi";
export default defineConfig({
routes: [
{ path: "/", component: "libro-lab/index" },
{ path: "/editor", component: "libro-editor/index" },
{ path: "/command", component: "libro-command/index" },
{ path: "/toolbar", component: "libro-toolbar/index" },
{ path: "/keybind", component: "libro-keybind/index" },
{ path: "/cell", component: "libro-cell/index" },
{ path: "/docs", component: "docs" },
],
npmClient: 'pnpm',
// 引入
plugins: ['@difizen/umi-plugin-mana'],
// 配置
mana: {
decorator: true,
nodenext: true,
routerBase: true,
runtime: true,
},
proxy: {
'/api': {
target: 'http://localhost:8888/',
changeOrigin: true,
secure: false,
pathRewrite: {},
ws: true,
},
'/files': {
target: 'http://localhost:8888/',
changeOrigin: true,
secure: false,
pathRewrite: {},
ws: true,
},
'/lsp': {
target: 'http://localhost:8888/',
changeOrigin: true,
secure: false,
ws: true,
},
},
});