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(