Skip to content

Commit 0629df3

Browse files
masenfKastier1
andauthored
Use set_persistent when applying config changes in export (#5102)
* Use set_persistent when applying config changes in export * 🕶️ * Revert "🕶️" This reverts commit 7a8ed19. --------- Co-authored-by: Kastier1 <[email protected]>
1 parent e04bfbb commit 0629df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reflex/utils/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def export(
4141

4242
# Override the config url values if provided.
4343
if api_url is not None:
44-
config.api_url = str(api_url)
44+
config._set_persistent(api_url=str(api_url))
4545
console.debug(f"overriding API URL: {config.api_url}")
4646
if deploy_url is not None:
47-
config.deploy_url = str(deploy_url)
47+
config._set_persistent(deploy_url=str(deploy_url))
4848
console.debug(f"overriding deploy URL: {config.deploy_url}")
4949

5050
# Show system info

0 commit comments

Comments
 (0)