Starts in:
2 DAYS
15 HRS
57 MIN
6 SEC
Starts in:
2 D
15 H
57 M
6 S
Open Closed

Angular App Environment Variables change without rebuild #1835


User avatar
0
can.ercan created
  • ABP Framework version: v4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Is there any way to get the environment variables from a json file? For example if our customer has decided to change their IP address or Domain name is there any way to change configuration without rebuilding the app and deploying the files again?

import { Environment } from '@abp/ng.core';

const baseUrl = 'http://192.168.16.55:4200';

export const environment = { production: true, application: { baseUrl, name: 'AppName', }, oAuthConfig: { issuer: 'https://192.168.16.55:44321', redirectUri: baseUrl, clientId: 'AppName_App', responseType: 'code', scope: 'offline_access AppName', requireHttps: false }, apis: { default: { url: 'https://192.168.16.55:44321', rootNamespace: 'AppName', }, }

} as Environment;

Thanks, Can Ercan


2 Answer(s)
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06