diff --git a/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts b/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts index ece48c38f..ed96bdd56 100644 --- a/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts +++ b/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts @@ -8,15 +8,13 @@ dotenv.config({ process.env.MFSU_AD = 'none'; -const baseUrl = `http://localhost:${process.env.API_PORT || '13001'}/`; - export default defineConfig({ favicon: '/favicon.png', nodeModulesTransform: { type: 'none', }, define: { - 'process.env.API_URL': process.env.API_URL || `${baseUrl}api/`, + 'process.env.API_URL': process.env.API_URL || `/api/`, 'process.env.API_PORT': process.env.API_PORT || '13001', }, proxy: {