mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 23:36:15 +00:00
28 lines
534 B
TypeScript
28 lines
534 B
TypeScript
import { defineConfig } from 'umi';
|
|
import dotenv from 'dotenv';
|
|
import path from 'path';
|
|
|
|
dotenv.config({
|
|
path: path.resolve(__dirname, '../../.env'),
|
|
});
|
|
|
|
export default defineConfig({
|
|
nodeModulesTransform: {
|
|
type: 'none',
|
|
},
|
|
define: {
|
|
'process.env.API_URL': process.env.API_URL,
|
|
},
|
|
routes: [
|
|
{ path: '/', exact: false, component: '@/pages/index' },
|
|
],
|
|
fastRefresh: {},
|
|
locale: {
|
|
default: 'zh-CN',
|
|
// antd: false,
|
|
// title: false,
|
|
baseNavigator: false,
|
|
baseSeparator: '-',
|
|
},
|
|
});
|