expose staticPageGenerationTimeout

This commit is contained in:
Khaleel Al-Adhami 2024-10-29 17:35:10 -07:00
parent 98394ceb8e
commit 8e7b4d5d2c
2 changed files with 4 additions and 0 deletions

View File

@ -451,6 +451,9 @@ class Config(Base):
# The bun path # The bun path
bun_path: ExistingPath = constants.Bun.DEFAULT_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. # List of origins that are allowed to connect to the backend API.
cors_allowed_origins: List[str] = ["*"] cors_allowed_origins: List[str] = ["*"]

View File

@ -677,6 +677,7 @@ def _update_next_config(
"compress": config.next_compression, "compress": config.next_compression,
"reactStrictMode": config.react_strict_mode, "reactStrictMode": config.react_strict_mode,
"trailingSlash": True, "trailingSlash": True,
"staticPageGenerationTimeout": config.static_page_generation_timeout,
} }
if transpile_packages: if transpile_packages:
next_config["transpilePackages"] = list( next_config["transpilePackages"] = list(