Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

5xx: Fix development server preview of 500 error page.

Anders Kaseorg4d8e5b50291f
diff --git a/templates/zerver/development/dev_tools.html b/templates/zerver/development/dev_tools.html
index 453390be1ca..8cc6b254582 100644
--- a/templates/zerver/development/dev_tools.html
+++ b/templates/zerver/development/dev_tools.html
@@ -56,7 +56,7 @@
</tr>
<tr>
<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>
</tr>
<tr>
diff --git a/web/html/5xx.html b/web/html/5xx.html
index 0cd1e24e42d..eb869ae7ac7 100644
--- a/web/html/5xx.html
+++ b/web/html/5xx.html
@@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8" />
<title>500 internal server error | Zulip</title>
- <base href="/static/webpack-bundles/" />
<meta http-equiv="refresh" content="60;URL='/'" />
<!-- We use `error-styles` webpack assets to styles this page. -->
diff --git a/web/webpack.config.ts b/web/webpack.config.ts
index 1b6034386c7..aa4a58f899c 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: {