-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented the getting environment from remote URL #4967
Conversation
Caught HTTP errors when requesting remote config
My implementation (see here) allowed for partial replacement and appending of nested properties using a package called I could have the default {
recaptcha: { enabled: false, siteKey: 'AAAA' }
} And my {
recaptcha: { enabled: true },
anotherSetting: "hi"
} Which results in: {
recaptcha: { enabled: true, siteKey: 'AAAA' },
anotherSetting: "hi"
} You don't have to use the |
Hi @olicooper Thanks for your suggestion. We'll consider this. |
Could you also consider the option to suppress the |
I have just tried this on a staging environment and found an issue on the Angular UI... I'm not sure why but the request to
{
oAuthConfig: {
issuer: 'https://api.app.example.com',
// etc...
},
apis: {
default: {
url: 'https://api.app.example.com',
},
}
}
{
"oAuthConfig": {
"issuer": "https://api.staging.example.com",
// etc...
},
"apis": {
"default": {
"url": "https://api.staging.example.com"
}
}
} I am using |
We will create an injection token to be able to get catch error function from the I will check it. Thanks for the information. |
Perfect, great work! Thank you 👍 |
@mehmet-erim I think I have fixed the problem.. #5058 |
Relates to abpframework/abp#4967 When using `remoteEnv`, OAuth was being configured with the default `environment.ts` settings rather than the one loaded from the `remoteEnv`. This should fix the problem. bug originally mentioned here: abpframework/abp#4967 (comment)
Resolves #4386
Remote environment configuration can be added to the environment like below: