nocobase/packages/app/.umirc.ts
2021-07-23 18:26:05 +08:00

21 lines
404 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: {},
});