Hot reload staticwebapp.config.json changes when server is running
See original GitHub issueIs your feature request related to a problem? Please describe.
We need to support hot reloading the staticwebapp.config.json
file whenever it got edited, without restarting the server.
Describe alternatives you’ve considered Currently, users need to kill the server and restart it so their changes get applied.
Additional context
Currently, we read and cache the staticwebapp.config.json
when starting the server:
https://github.com/Azure/static-web-apps-cli/blob/722616015d16059d697428bd44f143ad72857b02/src/msha/server.ts#L146-L154
An easy implementation would be to move the call to await handleUserConfig(...)
inside:
https://github.com/Azure/static-web-apps-cli/blob/722616015d16059d697428bd44f143ad72857b02/src/msha/server.ts#L49-L51
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Configure Azure Static Web Apps - Microsoft Learn
Use staticwebapp.config.json as described in this article to configure routing and other settings for your static web app. This document is ...
Read more >Hot-Reload .NET Configuration in Kubernetes with ConfigMaps
NET application from the outside and automatically reload changes applied to the ConfigMap. Automatically reloading configuration data without ...
Read more >Getting Started with Azure Static Web Apps (SWA) - Jade Global
A fallback route matches all unmatched page requests to the server. SWA supports custom routing defined in the file staticwebapp.config.json ...
Read more >Azure — How To Configure fallback routes for Angular Static ...
Whenever you refresh the page we need to explicitly configure fallback… ... and Microsoft Account to deploy that code using Azure static web...
Read more >Azure Static App Route configuration with React Router
As for the latest documentation the use of routes is deprecated: routes.json that was previously used to configure routing is deprecated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is much needed feature, because it is really cumbersome for the user to restart the server every time he make changes in config file. Thanks for pointing out Wassim, will work on this.
No Wassim, I didn’t get chance to work on this feature.