environment variables are no longer accessible after moving to it's own Settings page

Marius TC 0 Reputation points
2024-04-17T00:14:39.0666667+00:00

Hi,

After getting the environment variables to its own page in settings of a Static Web Application, I'm unable to access newly created environment variables, while for the older projects I'm unable to see the variables in the respective settings page. There is no more App Settings available. When trying to access it in the Configuration page, I get the following message: App Settings have moved to 'Environment Variables'. As you can see from the screenshot, I'm trying to set an REACT_APP_URL that points to the RestAPI URL, however retrieving that variable with process.env.REACT_APP_URL returns null. I've spent a few days on this searching for a solution, but I was not successful. Could anyone give me a hand, please?

Thank you.

User's image

User's image

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
770 questions
{count} votes