Browse Source

Use set_persistent when applying config changes in export (#5102)

* Use set_persistent when applying config changes in export

* 🕶️

* Revert "🕶️"

This reverts commit 7a8ed19acc901f1e881a861fefa379726f6f2222.

---------

Co-authored-by: Kastier1 <40179067+Kastier1@users.noreply.github.com>
Masen Furer 1 month ago
parent
commit
0629df352d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      reflex/utils/export.py

+ 2 - 2
reflex/utils/export.py

@@ -41,10 +41,10 @@ def export(
 
     # Override the config url values if provided.
     if api_url is not None:
-        config.api_url = str(api_url)
+        config._set_persistent(api_url=str(api_url))
         console.debug(f"overriding API URL: {config.api_url}")
     if deploy_url is not None:
-        config.deploy_url = str(deploy_url)
+        config._set_persistent(deploy_url=str(deploy_url))
         console.debug(f"overriding deploy URL: {config.deploy_url}")
 
     # Show system info