Azure Static Web Apps environment variable on clientapp

Hector Romo 151 Reputation points


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.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,378 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Clark Maine 6 Reputation points

    Any update here. This is an annoying limitation.

    1 person found this answer helpful.

  2. ajkuma 24,736 Reputation points Microsoft Employee

    @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!.

    0 comments No comments

  3. Stephen Tunney 1 Reputation point

    Any update on this? Env Vars are essential.

    0 comments No comments