Skip to content

Commit 3ca95f4

Browse files
docs: add hot reload best practices for v2.1.0
1 parent a80af8a commit 3ca95f4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

assets/best-practices.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242

4343
- File paths in Dev Proxy configuration files are always relative to the file where they're defined.
4444

45+
## Hot reload
46+
47+
- Dev Proxy supports hot reload of configuration files (v2.1.0+). When you modify the configuration file while Dev Proxy is running, it automatically detects the changes and restarts with the new configuration.
48+
- Hot reload works for the main configuration file (devproxyrc.json/devproxyrc.jsonc) and plugin-specific configuration files (mock files, CRUD API data files, etc.).
49+
- You don't need to manually restart Dev Proxy after making configuration changes - just save the file and the changes take effect automatically.
50+
- Hot reload helps you iterate faster when developing and testing different proxy configurations.
51+
4552
## curl
4653

4754
- When asked for `curl` commands, include `-ikx http://127.0.0.1:8000` so that curl will ignore SSL certificate errors and use Dev Proxy, eg. `curl -ikx http://127.0.0.1:8000 https://jsonplaceholder.typicode.com/posts/1`.

0 commit comments

Comments
 (0)