expose staticPageGenerationTimeout
This commit is contained in:
parent
98394ceb8e
commit
8e7b4d5d2c
@ -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] = ["*"]
|
||||||
|
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user