fix(webui): 404 for favicon.ico with 'npm run build'

This commit is contained in:
Sainan 2024-12-29 23:44:29 +01:00
parent 02f4d0e821
commit 212a5e7035

View File

@ -40,7 +40,7 @@ webuiRouter.use("/webui", express.static(path.join(rootDir, "static/webui")));
// Serve favicon // Serve favicon
webuiRouter.get("/favicon.ico", (_req, res) => { webuiRouter.get("/favicon.ico", (_req, res) => {
res.sendFile(path.join(rootDir, "static/fixed_responses/favicon.ico")); res.sendFile(path.join(repoDir, "static/fixed_responses/favicon.ico"));
}); });
// Serve warframe-riven-info // Serve warframe-riven-info