mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
60b966f59e
* fix: test cases * fix env used by file manager * default value of process.env.LOCAL_STORAGE_BASE_URL * use workspace dependencies * refactor some env to adapt more scenario * fix reviewing issues * fix env default value * update umi config * bugfix * fix shared cache Co-authored-by: chenos <chenlinxh@gmail.com>
74 lines
1.8 KiB
TypeScript
74 lines
1.8 KiB
TypeScript
import { defineConfig } from 'dumi';
|
|
import { getUmiConfig } from '@nocobase/utils';
|
|
|
|
process.env.MFSU_AD = 'none';
|
|
|
|
const umiConfig = getUmiConfig();
|
|
|
|
export default defineConfig({
|
|
title: 'NocoBase',
|
|
hash: true,
|
|
define: {
|
|
...umiConfig.define,
|
|
},
|
|
// only proxy when using `umi dev`
|
|
// if the assets are built, will not proxy
|
|
proxy: {
|
|
...umiConfig.proxy,
|
|
},
|
|
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
|
|
});
|