diff --git a/tools/webpack b/tools/webpack index f463bd06af..d2b553dca1 100755 --- a/tools/webpack +++ b/tools/webpack @@ -11,6 +11,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..") os.chdir(os.path.join(os.path.dirname(__file__), "../web")) +from scripts.lib.zulip_tools import get_config, get_config_file from version import ZULIP_VERSION webpack_command = [ @@ -39,6 +40,10 @@ def build_for_prod_or_puppeteer(quiet: bool, config_name: str | None = None) -> webpack_args += [f"--config-name={config_name}"] if "PUPPETEER_TESTS" in os.environ: webpack_args.append("--env=puppeteer_tests") + else: + custom_5xx_file = get_config(get_config_file(), "application_server", "5xx_file") + if custom_5xx_file is not None: + webpack_args.append(f"--env=custom_5xx_file={custom_5xx_file}") # Silence warnings from "browserslist" about using old data; those # warnings are only useful for development diff --git a/web/html/5xx-cloud.html b/web/html/5xx-cloud.html new file mode 100644 index 0000000000..921e08e9d9 --- /dev/null +++ b/web/html/5xx-cloud.html @@ -0,0 +1,33 @@ + + +
+ +Zulip Cloud is currently experiencing some technical difficulties. Sorry about that!
+You can check our status page for more information.
+The page will reload automatically soon after service is restored.
+