Managing Environment Variables in Azure Static Web Apps with Azure Developer CLI
The Azure Developer CLI (azd) is an open-source tool that accelerates provisioning and deploying app resources on Azure, it is great for deploying resources quickly and easily - especially in a proof of concept, or rapid innovation scenario.
One of the resources you can deploy (both Infrastructure and Application) is a Azure Static Web App recently, I ran into an issue where I was deploying a backend Azure Function, and I needed a react web application front end hosted on the Azure Static WebApp to pull the function app URL and function key from the runtime environment variables, and quickly realized that React does not support runtime environment variables - only build-time environment variables.