tachybase_todo/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts
Junyi 60b966f59e
Fix: plugin-file-manager (#111)
* 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>
2021-12-03 07:31:22 +08:00

37 lines
761 B
TypeScript

import { defineConfig } from 'umi';
import dotenv from 'dotenv';
import path from 'path';
import { getUmiConfig } from '@nocobase/utils';
dotenv.config({
path: path.resolve(__dirname, './.env'),
});
const umiConfig = getUmiConfig();
process.env.MFSU_AD = 'none';
export default defineConfig({
favicon: '/favicon.png',
nodeModulesTransform: {
type: 'none',
},
define: {
...umiConfig.define,
},
// only proxy when using `umi dev`
// if the assets are built, will not proxy
proxy: {
...umiConfig.proxy,
},
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
fastRefresh: {},
locale: {
default: 'zh-CN',
// antd: false,
// title: false,
baseNavigator: false,
baseSeparator: '-',
},
});