You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To setup Application Insights, CDN url, cluster, region details and more in the web client we need to enable runtime environment variables.
Build environment variables are set when creating the static bundle files, these cannot be changed. Examples of these could be related to version and build related configurations. BUILD_ENV
Runtime environment variables are dynamic, they can be changed and updated by developer operations and relate to deployment specific settings. RUNTIME_ENV
To ensure that it's clear for everyone which custom runtime environment variables are sent to the client they will be suffixed with PUBLIC_ and filtered by this.
These runtime environment variables are not prefixed as they are added by the platform setup:
PUBLIC_URL - location of the served index.html / base url
CDN_URL - location of client bundle files
CLUSTER_ID?
REGION?
Solution options:
Have an endpoint to return the runtime environment variables
To setup Application Insights, CDN url, cluster, region details and more in the web client we need to enable runtime environment variables.
Build environment variables are set when creating the static bundle files, these cannot be changed. Examples of these could be related to version and build related configurations.
BUILD_ENV
Runtime environment variables are dynamic, they can be changed and updated by developer operations and relate to deployment specific settings.
RUNTIME_ENV
To ensure that it's clear for everyone which custom runtime environment variables are sent to the client they will be suffixed with
PUBLIC_
and filtered by this.These runtime environment variables are not prefixed as they are added by the platform setup:
PUBLIC_URL
- location of the served index.html / base urlCDN_URL
- location of client bundle filesCLUSTER_ID
?REGION
?Solution options:
Solution:
This solution will prevent extra roundtrips and should not violate CSP
Developer ergonomics:
const foo = environment.get("PUBLIC_FOO");
Tasks
The text was updated successfully, but these errors were encountered: