From 4d8e5b50291f2a0d648a95bf2d2b19768cb6d8c7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 May 2024 09:27:05 -0700 Subject: [PATCH] 5xx: Fix development server preview of 500 error page. This can be viewed at http://localhost:9991/webpack/5xx.html on the development server. Signed-off-by: Anders Kaseorg --- templates/zerver/development/dev_tools.html | 2 +- web/html/5xx.html | 1 - web/webpack.config.ts | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/zerver/development/dev_tools.html b/templates/zerver/development/dev_tools.html index 453390be1c..8cc6b25458 100644 --- a/templates/zerver/development/dev_tools.html +++ b/templates/zerver/development/dev_tools.html @@ -56,7 +56,7 @@ /webpack/5xx.html - ./manage.py collectstatic --noinput + None needed Error 5xx page served by nginx (used when Django is totally broken) diff --git a/web/html/5xx.html b/web/html/5xx.html index 0cd1e24e42..eb869ae7ac 100644 --- a/web/html/5xx.html +++ b/web/html/5xx.html @@ -3,7 +3,6 @@ 500 internal server error | Zulip - diff --git a/web/webpack.config.ts b/web/webpack.config.ts index 1b6034386c..aa4a58f899 100644 --- a/web/webpack.config.ts +++ b/web/webpack.config.ts @@ -215,6 +215,7 @@ const config = ( filename: "5xx.html", template: "html/5xx.html", chunks: ["error-styles"], + publicPath: production ? "/static/webpack-bundles/" : "/webpack/", }), ], devServer: {