Update artifacts/api-server/src/app.ts
Build & Push Docker Image / build (push) Successful in 1m48s

This commit is contained in:
2026-07-31 17:32:00 +00:00
parent 047b782797
commit fd51146049
+1 -1
View File
@@ -63,7 +63,7 @@ app.use("/api", router);
const staticDir = process.env.STATIC_DIR; const staticDir = process.env.STATIC_DIR;
if (staticDir && existsSync(staticDir)) { if (staticDir && existsSync(staticDir)) {
app.use(express.static(staticDir)); app.use(express.static(staticDir));
app.get("*", (_req, res) => { app.get("/*any", (_req, res) => {
res.sendFile(resolve(staticDir, "index.html")); res.sendFile(resolve(staticDir, "index.html"));
}); });
logger.info({ staticDir }, "Serving static files"); logger.info({ staticDir }, "Serving static files");