Hi @Averroes ,
Try using WEBSITE_NODE_DEFAULT_VERSION
environment variable instead. See https://learn.microsoft.com/en-us/azure/app-service/configure-language-nodejs?pivots=platform-windows#set-nodejs-version for more details.
EDIT: My apologies, WEBSITE_NODE_DEFAULT_VERSION
is for setting node runtime your app will be using. All you need to do is add NODE_ENV
as an app setting and make sure that Deployment slot setting is checked.