tachybase_todo/packages/app/.umirc.ts

21 lines
404 B
TypeScript
Raw Normal View History

import { defineConfig } from 'umi';
2021-07-23 18:26:05 +08:00
import dotenv from 'dotenv';
import path from 'path';
dotenv.config({
path: path.resolve(__dirname, '../../.env'),
});
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
2021-07-23 18:26:05 +08:00
define: {
'process.env.API_URL': process.env.API_URL,
},
routes: [
2021-05-23 08:38:08 +08:00
{ path: '/', exact: false, component: '@/pages/index' },
],
2021-05-23 08:38:08 +08:00
fastRefresh: {},
});