I deployed an Angular App as Static Web App into Azure. Now I want to use the Application Settings in the Configuration to change variables in my environment.ts to access different APIs and Application Insights without changing the code every time.
environment.ts
export const environment = {
production: true,
SERVER_API_URL: 'https://backend01.azurewebsites.net',
DEVELOPER_OPTIONS: true,
ENABLE_PROD_MODE: true,
appInsights: {
instrumentationKey: '<key>'
}
};
I want to change the instrumentationKey
and the SERVER_API_URL
.
Is that possible with Application Settings and does anyone know how to do it?
Thank you :)