Azure / Azure/static-web-apps

Unable to access configuration values with azure functions

Open
#403 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I'm trying to deploy a static web app with functions as an api, however I seem to be having issues in accessing the configuration values in the functions with the process.env .

loca.settings.json and configuration page in azure portal
![fCgtAhndRK](https://user-images.githubusercontent.com/72432029/117674055-05889980-b1b4-11eb-98b4-e1789423abdf.png)
![chrome_GHo40LNRvD](https://user-images.githubusercontent.com/72432029/117674094-0cafa780-b1b4-11eb-828d-cb45de2373a0.png)

and here is how I'm retrieving it:
![Code_49z22b8Nyo](https://user-images.githubusercontent.com/72432029/117674367-484a7180-b1b4-11eb-8255-b261a9f1f65b.png)

Locally it is working, but when I deploy to azure it is not.

Also when editing a function that is already deployed to azure (or creating a new one) and then pushing to github my github action fails
![chrome_O7CUVfaZXe](https://user-images.githubusercontent.com/72432029/117675001-daeb1080-b1b4-11eb-8b8d-2ecbcbc82a43.png)

Any feedback and suggestions would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.