mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 00:29:40 +00:00
c851033406
* feat: add alert message * chore(versions): 😊 publish v0.7.0-alpha.61 * fix(create-nocobase-app): add storage folder * fix(docs): storage path error * chore(versions): 😊 publish v0.7.0-alpha.62 * docs: update upgrading * docs: update release notes
27 lines
618 B
TypeScript
27 lines
618 B
TypeScript
import { getUmiConfig, resolveNocobasePackagesAlias } from '@nocobase/devtools/umiConfig';
|
|
import { defineConfig } from 'umi';
|
|
|
|
const umiConfig = getUmiConfig();
|
|
|
|
process.env.MFSU_AD = 'none';
|
|
|
|
export default defineConfig({
|
|
hash: true,
|
|
define: {
|
|
...umiConfig.define,
|
|
},
|
|
// only proxy when using `umi dev`
|
|
// if the assets are built, will not proxy
|
|
proxy: {
|
|
...umiConfig.proxy,
|
|
},
|
|
nodeModulesTransform: {
|
|
type: 'none',
|
|
},
|
|
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
|
|
// fastRefresh: {},
|
|
chainWebpack(config) {
|
|
resolveNocobasePackagesAlias(config);
|
|
},
|
|
});
|