mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 19:58:15 +08:00
fix: missing process.env.API_URL
This commit is contained in:
parent
0c0d90fd50
commit
afdca3af48
@ -8,13 +8,15 @@ dotenv.config({
|
|||||||
|
|
||||||
process.env.MFSU_AD = 'none';
|
process.env.MFSU_AD = 'none';
|
||||||
|
|
||||||
|
const baseUrl = `http://localhost:${process.env.API_PORT || '13001'}/`;
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
favicon: '/favicon.png',
|
favicon: '/favicon.png',
|
||||||
nodeModulesTransform: {
|
nodeModulesTransform: {
|
||||||
type: 'none',
|
type: 'none',
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.env.API_URL': process.env.API_URL || 'http://127.0.0.1',
|
'process.env.API_URL': process.env.API_URL || `${baseUrl}api/`,
|
||||||
'process.env.API_PORT': process.env.API_PORT || '13001',
|
'process.env.API_PORT': process.env.API_PORT || '13001',
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
|
Loading…
Reference in New Issue
Block a user