Azure / Azure/static-web-apps

Azure Static Web App Configuration App Settings doesn't work

Open
#1,177 7 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

**Describe the bug**

Adding app settings values to the static web app doesnt overwrite the app settings value for the deployed environments.

**To Reproduce**
Steps to reproduce the behavior:
1. Create App Settings Value in .env file for VueJS application
2. Use import.meta.env throughout the VueJs application to access the environment variable
3. Add the created app settings value to the azure static web app application settings for deployed environment
4. Modify the value to be different (example: different database connection string)
5. Click Save
6. The app settings value in the deployed application is not affected by how it is defined in the azure static web app configuration section (even after a new release)

**Expected behavior**
value entered in azure static web app application settings should override what is defined in the .env file

**Screenshots**
![image](https://github.com/Azure/static-web-apps/assets/12058610/1e93b7ce-9ce0-40ae-8c3e-779112c0bbeb)

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.