question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot reload staticwebapp.config.json changes when server is running

See original GitHub issue

Is 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sgollapudi77commented, Aug 24, 2021

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.

0reactions
sgollapudi77commented, Apr 20, 2022

No Wassim, I didn’t get chance to work on this feature.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found