Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WIKI-565] chore: handle 404 messages in live server (#7472)

sriram veeraghanta849b7b7bf33c
diff --git a/apps/live/.env.example b/apps/live/.env.example
index 064258253f..5fc90d75fc 100644
--- a/apps/live/.env.example
+++ b/apps/live/.env.example
@@ -1,3 +1,4 @@
+PORT=3100
API_BASE_URL="http://localhost:8000"
WEB_BASE_URL="http://localhost:3000"
diff --git a/apps/live/src/server.ts b/apps/live/src/server.ts
index 8ffa38a60d..c4a3535389 100644
--- a/apps/live/src/server.ts
+++ b/apps/live/src/server.ts
@@ -82,14 +82,16 @@ export class Server {
});
} catch (error) {
manualLogger.error("Error in /convert-document endpoint:", error);
- res.status(500).send({
- message: `Internal server error. ${error}`,
+ res.status(500).json({
+ message: `Internal server error.`,
});
}
});
this.app.use((_req: Request, res: Response) => {
- res.status(404).send("Not Found");
+ res.status(404).json({
+ message: "Not Found",
+ });
});
}