feat: add support for runtime server url changes (#1271)

Fixes: #786
Fixes: #1229
This commit is contained in:
Karan Takalkar
2020-11-19 12:03:12 +05:30
committed by GitHub
parent 5f90bc00bd
commit 8271eb00ac
14 changed files with 145 additions and 11 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
export default {
'npm_package_version': '0.0.0'
'mifos_x_version': '0.0.0',
'allow_switching_backend_instance': true
};
+3 -2
View File
@@ -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: '',
+3 -2
View File
@@ -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: '',