nocobase/.umirc.ts

74 lines
1.9 KiB
TypeScript
Raw Normal View History

import { defineConfig } from 'dumi';
2021-12-03 04:30:55 +00:00
import { getUmiConfig } from './packages/utils/src/umiConfig';
2021-07-24 08:37:13 +00:00
2021-10-31 01:44:52 +00:00
process.env.MFSU_AD = 'none';
const umiConfig = getUmiConfig();
export default defineConfig({
2021-11-16 03:06:17 +00:00
title: 'NocoBase',
hash: true,
2021-07-23 10:26:05 +00:00
define: {
...umiConfig.define,
2021-07-23 10:26:05 +00:00
},
// only proxy when using `umi dev`
// if the assets are built, will not proxy
2021-09-30 07:16:41 +00:00
proxy: {
...umiConfig.proxy,
2021-09-30 07:16:41 +00:00
},
resolve: {
2021-10-31 03:35:11 +00:00
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;
}
}
2021-10-31 01:44:52 +00:00
video {
max-width: 800px;
width: 100%;
border-radius: 5px;
box-shadow: 0 8px 24px -2px rgb(0 0 0 / 5%);
}
2021-10-29 05:04:44 +00:00
`,
],
2021-08-16 04:36:17 +00:00
// mfsu: {},
2021-05-23 00:38:08 +00:00
// 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
});