I have an app service set up in Azure with a static built NodeJS web application. The application runs fine and I want to move the api key and hostname of the api to variables in the environment.
In Azure->Settings->Configuration->Application Settings I have added two environment variables and set a value for each.
In my Constants.js file I have
export const token = process.env.API_KEY;
export const host = process.env.API_HOST;
But process.env.API_KEY is always null.
I have even tried :
export const token = process.env["API_KEY"];
To no avail. What am I doing wrong?
