Use proxy-safe relative URLs

This commit is contained in:
Codex
2026-07-08 06:24:02 +00:00
parent 65c1e8bddf
commit bbe7b6f562
4 changed files with 19 additions and 5 deletions
+1
View File
@@ -66,6 +66,7 @@ function safeSendFrom(root: string, requested: string, res: Response): void {
res.sendFile(target);
}
app.use(`${config.basePath}/assets`, express.static(path.resolve("dist-client/assets"), { immutable: true, maxAge: "1y" }));
app.use(`${config.basePath}/admin-assets`, express.static(path.resolve("dist-client"), { immutable: true, maxAge: "1y" }));
app.get(`${config.basePath}/admin`, (_req, res) => {