Merge pull request #78 from MumuTW/fix/dashboard-spa-refresh-500

fix: resolve 500 error on SPA route refresh (#48)
This commit is contained in:
Dotta
2026-03-07 09:05:19 -06:00
committed by GitHub

View File

@@ -133,7 +133,7 @@ export async function createApp(
if (uiDist) {
app.use(express.static(uiDist));
app.get(/.*/, (_req, res) => {
res.sendFile(path.join(uiDist, "index.html"));
res.sendFile("index.html", { root: uiDist });
});
} else {
console.warn("[paperclip] UI dist not found; running in API-only mode");