Skip to content

Commit fd0799f

Browse files
authored
Merge pull request #78 from MumuTW/fix/dashboard-spa-refresh-500
fix: resolve 500 error on SPA route refresh (#48)
2 parents ffc59f5 + 264d40e commit fd0799f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function createApp(
133133
if (uiDist) {
134134
app.use(express.static(uiDist));
135135
app.get(/.*/, (_req, res) => {
136-
res.sendFile(path.join(uiDist, "index.html"));
136+
res.sendFile("index.html", { root: uiDist });
137137
});
138138
} else {
139139
console.warn("[paperclip] UI dist not found; running in API-only mode");

0 commit comments

Comments
 (0)