nocobase/.umirc.ts
2021-09-30 15:16:41 +08:00

37 lines
962 B
TypeScript

import { defineConfig } from 'dumi';
console.log('process.env.API_URL', process.env.API_URL)
export default defineConfig({
title: ' ',
hash: true,
define: {
'process.env.API_URL': process.env.API_URL,
},
proxy: {
'/api': {
'target': `http://localhost:${process.env.API_PORT}/`,
'changeOrigin': true,
'pathRewrite': { '^/api' : '/api' },
},
},
// mfsu: {},
// ssr: {},
// exportStatic: {},
mode: 'doc',
logo: 'https://www.nocobase.com/dist/images/logo.png',
navs: {
'en-US': [
null,
{ title: 'GitHub', path: 'https://github.com/nocobase/nocobase' },
{ title: 'Changelog', path: 'https://github.com/nocobase/nocobase/releases' },
],
'zh-CN': [
null,
{ title: 'GitHub', path: 'https://github.com/nocobase/nocobase' },
{ title: '更新日志', path: 'https://github.com/nocobase/nocobase/releases' },
],
},
// more config: https://d.umijs.org/config
});