forked from nocobase/nocobase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
76 lines (73 loc) · 1.98 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { defineConfig } from 'dumi';
const baseUrl = `http://localhost:${process.env.API_PORT || '13001'}/`;
console.log('baseUrl', baseUrl);
process.env.MFSU_AD = 'none';
export default defineConfig({
title: 'NocoBase',
hash: true,
define: {
'process.env.API_URL': process.env.API_URL || `${baseUrl}api/`,
'process.env.API_HOSTNAME': process.env.API_HOSTNAME,
},
proxy: {
'/api/': {
target: baseUrl,
changeOrigin: true,
pathRewrite: { '^/api/': '/api/' },
},
},
resolve: {
includes: ['docs', 'packages/client/src/schemas'],
},
styles: [
`
.__dumi-default-navbar-logo {
height: 100%;
width: 100px;
}
.__dumi-default-layout .__dumi-default-navbar {
box-shadow: 0 0 3px rgb(60 72 88 / 15%);
}
.__dumi-default-layout[data-site-mode='true'] {
padding-top: 150px !important;
}
@media only screen and (max-width: 767px) {
.__dumi-default-layout[data-site-mode="true"] {
padding-top: 128px !important;
}
}
@media only screen and (min-width: 768px) {
.__dumi-default-menu[data-mode='site'] {
top: 100px !important;
}
.__dumi-default-layout[data-site-mode='true'] .__dumi-default-layout-toc {
top: 150px !important;
}
}
video {
max-width: 800px;
width: 100%;
border-radius: 5px;
box-shadow: 0 8px 24px -2px rgb(0 0 0 / 5%);
}
`,
],
// mfsu: {},
// ssr: {},
// exportStatic: {},
mode: 'site',
logo: 'https://www.nocobase.com/images/logo.png',
navs: {
'en-US': [
null,
{ title: 'GitHub', path: 'https://github.com/nocobase/nocobase' },
// { title: 'Changelog', path: 'https://github.com/nocobase/nocobase/releases' },
],
'zh-CN': [
null,
{ title: 'GitHub', path: 'https://github.com/nocobase/nocobase' },
// { title: '更新日志', path: 'https://github.com/nocobase/nocobase/releases' },
],
},
// more config: https://d.umijs.org/config
});