feat: add support for runtime server url changes (#1271)
Fixes: #786 Fixes: #1229
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export default {
|
||||
'npm_package_version': '0.0.0'
|
||||
'mifos_x_version': '0.0.0',
|
||||
'allow_switching_backend_instance': true
|
||||
};
|
||||
|
||||
@@ -3,9 +3,10 @@ import env from './.env';
|
||||
|
||||
export const environment = {
|
||||
production: true,
|
||||
version: env.npm_package_version,
|
||||
version: env.mifos_x_version,
|
||||
fineractPlatformTenantId: 'default', // For connecting to server running elsewhere update the tenant identifier
|
||||
baseApiUrl: 'https://demo.fineract.dev', // For connecting to server running elsewhere update the base API URL
|
||||
baseApiUrl: JSON.parse(localStorage.getItem('mifosXServerURL')) || 'https://demo.fineract.dev', // For connecting to server running elsewhere update the base API URL
|
||||
allowServerSwitch: env.allow_switching_backend_instance,
|
||||
apiProvider: '/fineract-provider/api',
|
||||
apiVersion: '/v1',
|
||||
serverUrl: '',
|
||||
|
||||
@@ -8,9 +8,10 @@ import env from './.env';
|
||||
|
||||
export const environment = {
|
||||
production: false,
|
||||
version: env.npm_package_version + '-dev',
|
||||
version: env.mifos_x_version + '-dev',
|
||||
fineractPlatformTenantId: 'default', // For connecting to server running elsewhere update the tenant identifier
|
||||
baseApiUrl: 'https://dev.mifos.io', // For connecting to server running elsewhere update the base API URL
|
||||
baseApiUrl: JSON.parse(localStorage.getItem('mifosXServerURL')) || 'https://dev.mifos.io', // For connecting to server running elsewhere update the base API URL
|
||||
allowServerSwitch: env.allow_switching_backend_instance,
|
||||
apiProvider: '/fineract-provider/api',
|
||||
apiVersion: '/v1',
|
||||
serverUrl: '',
|
||||
|
||||
Reference in New Issue
Block a user