Azure / Azure/static-web-apps

Blazor Web Assembly - Deploy Azure Static Web App (Preview) appsettings.json issue

Open
#886 19 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 using Deploy Azure Static Web App (Preview) task in my Release pipeline and I'm facing issue by not being able to replace appsettings.json values.
-

Here are the steps I'm doing.

1. In the build pipeline
- NUGET restore
- dotnet publish -c DEBUG

2. Release pipeline
- replace appsettings.json values with a custom values (Because of multitenant configuration).
- Use Deploy Azure Static Web App (Preview) to deploy my Blazor WebAssembly app.
- No Oryx build is being used since it has been already built.

Result:
- app deployed successfully but appsettings.json has not been updated.

Debug Results:
- [x] I ran an echo script to make sure the appsettings.json file generated is correct(the one I wanted).
- [x] Tried to create a new file (file named tenantsettings.json) to see if it's being updated and as a result it was updated successfully.
- [x] Tried to have unpublished Blazor flies and used the Oryx build. the appsettings was updated successfully but I was having some issues with (text/html), css, Blazor not found issues in the console and the app was not loading at all.

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.