From 8e7b4d5d2cdc9f0556a39816fe7e27578b42b6fd Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 29 Oct 2024 17:35:10 -0700 Subject: [PATCH] expose staticPageGenerationTimeout --- reflex/config.py | 3 +++ reflex/utils/prerequisites.py | 1 + 2 files changed, 4 insertions(+) diff --git a/reflex/config.py b/reflex/config.py index 5edd9906a..12cc0916a 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -451,6 +451,9 @@ class Config(Base): # The bun path bun_path: ExistingPath = constants.Bun.DEFAULT_PATH + # Timeout to do a production build of a frontend page. + static_page_generation_timeout: int = 60 + # List of origins that are allowed to connect to the backend API. cors_allowed_origins: List[str] = ["*"] diff --git a/reflex/utils/prerequisites.py b/reflex/utils/prerequisites.py index 33165af0e..d70e7706f 100644 --- a/reflex/utils/prerequisites.py +++ b/reflex/utils/prerequisites.py @@ -677,6 +677,7 @@ def _update_next_config( "compress": config.next_compression, "reactStrictMode": config.react_strict_mode, "trailingSlash": True, + "staticPageGenerationTimeout": config.static_page_generation_timeout, } if transpile_packages: next_config["transpilePackages"] = list(