Any update here. This is an annoying limitation.
Azure Static Web Apps environment variable on clientapp
Hi,
Is it possible to add environment variables to the client app of an Azure Static Web App (not functions)?
I can only find docs on how to add variables to the functions/api-part.
I understand that I can add environment variables in github-action, but it would be really nice to be able to add them directly in the azure portal interface.
3 answers
Sort by: Most helpful
-
-
ajkuma 24,971 Reputation points Microsoft Employee
2020-11-13T20:12:25.877+00:00 @Hector Romo , Yes, you explained it very well and it's a great suggestion! Thanks for sharing additional details. I'd a discussion with our product team on this internally.
This scenario is currently not supported. Our product engineering team is working on adding support for bringing your own authentication (in this case AD B2C) and it will use the app settings that can be configured via the Azure Portal. The scenario is expected to be enabled once we get closer to GA, but we do not have an ETA to share on this yet.
Apologies for any inconvenience! Thanks again for your great feedback!.
-
Stephen Tunney 1 Reputation point
2021-06-24T02:22:11.047+00:00 Any update on this? Env Vars are essential.