Hi Radzen Team
I have a project which uses data source that connects to odata service, after deployment it still remembers the URL I use during development, how do I change it ?
Regards
Yapp
Hi Radzen Team
I have a project which uses data source that connects to odata service, after deployment it still remembers the URL I use during development, how do I change it ?
Regards
Yapp
Hi Radzen Team,
Thank you for the guidance but what if I choose to deploy to a ZIP file and install the application to different IIS server which may have different odata endpoint url.
Do we get a chance to configure the oData endpoint URL in the Client app, like what we can do to the connection string value in the appsettings.json file or by defining an environment variable in the IIS to be read during runtime?
Regards,
Yapp
Hi Yapp,
Do you want to have a runtime configuration for the Angular application? The Angular CLI (which Radzen uses under the hood) only supports build-time configuration. We will figure some way to support runtime configuration though.
Until then there is only one solution which doesnβt involve rebuilding the app - replacing the required value in the main.js
file which Radzen produces.
Hi Yapp,
We just released a new version of Radzen that should support changing the data source endpoint at runtime. To do so do the following.
client\src\assets\config.json
with contents {}
config.json
and merge it with the values from environment.production.ts
.For example to change the URL of a certain endpoint follow this procedure:
"mydatasource": "http://example.com/odata"
{
"mydatasource": "http://somethingelse.com/odata"
}