I set environment variables in the azure app service through the settings

and I want to change to the environment variable I created through the code How can it be accessed? something like this
app.listen(PORT, () => {
console.log(`Example app listening at http://localhost:${config.PORT}`)
});
but it not recognizes the variable PORT