Skip to content

The open-source app everyone uses to manage agents at work

fix: use root option in sendFile to avoid dotfile 500 on SPA refresh

MumuTW264d40e6ca8e
diff --git a/server/src/app.ts b/server/src/app.ts
index 1faab2852e..ab6dcfad50 100644
--- a/server/src/app.ts
+++ b/server/src/app.ts
@@ -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");