You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When changing the {appLocation}/staticwebapp.config.json file and redeploying it (swa deploy) without rebuilding the application every time (e.g. for configuring routing or authentication) the configuration file inside the {outputLocation}/staticwebapp.config.json is not updated and thus subsequent changes are not applied to the static web app.
To Reproduce
Steps to reproduce the behavior:
Build an app
Type in command swa deploy
Notice how the configured {appLocation}/staticwebapp.config.json is copied to {outputLocation}/staticwebapp.config.json.
Change the {appLocation}/staticwebapp.config.json
Type in command swa deploy
The {outputLocation}/staticwebapp.config.json is not overriden but stays the same as before.
Expected behavior staticwebapp.config.json in the dist folder should be overridden with the configured one before each deployment.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows
Version 11
@azure/static-web-apps-cli: 2.0.1
Additional context
Add any other context about the problem here.
Just found it in the verbose output. If not file exists it seems to be copied, but otherwise this log output is missing:
Copying 'staticwebapp.config.json' to build output
Describe the bug
When changing the
{appLocation}/staticwebapp.config.json
file and redeploying it (swa deploy
) without rebuilding the application every time (e.g. for configuring routing or authentication) the configuration file inside the{outputLocation}/staticwebapp.config.json
is not updated and thus subsequent changes are not applied to the static web app.To Reproduce
Steps to reproduce the behavior:
swa deploy
{appLocation}/staticwebapp.config.json
is copied to{outputLocation}/staticwebapp.config.json
.{appLocation}/staticwebapp.config.json
swa deploy
{outputLocation}/staticwebapp.config.json
is not overriden but stays the same as before.Expected behavior
staticwebapp.config.json
in the dist folder should be overridden with the configured one before each deployment.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Just found it in the verbose output. If not file exists it seems to be copied, but otherwise this log output is missing:
Workaround
rm {outputFolder}/staticwebapp.config.json && swa deploy
The text was updated successfully, but these errors were encountered: