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 <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-30 09:27:05 -07:00 committed by Tim Abbott
parent 27a993a504
commit 4d8e5b5029
3 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
</tr> </tr>
<tr> <tr>
<td><a href="/webpack/5xx.html">/webpack/5xx.html</a></td> <td><a href="/webpack/5xx.html">/webpack/5xx.html</a></td>
<td><code>./manage.py collectstatic --noinput</code></td> <td>None needed</td>
<td>Error 5xx page served by nginx (used when Django is totally broken)</td> <td>Error 5xx page served by nginx (used when Django is totally broken)</td>
</tr> </tr>
<tr> <tr>

View File

@ -3,7 +3,6 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>500 internal server error | Zulip</title> <title>500 internal server error | Zulip</title>
<base href="/static/webpack-bundles/" />
<meta http-equiv="refresh" content="60;URL='/'" /> <meta http-equiv="refresh" content="60;URL='/'" />
<!-- We use `error-styles` webpack assets to styles this page. --> <!-- We use `error-styles` webpack assets to styles this page. -->

View File

@ -215,6 +215,7 @@ const config = (
filename: "5xx.html", filename: "5xx.html",
template: "html/5xx.html", template: "html/5xx.html",
chunks: ["error-styles"], chunks: ["error-styles"],
publicPath: production ? "/static/webpack-bundles/" : "/webpack/",
}), }),
], ],
devServer: { devServer: {