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.

chore: add server name while server initialization (#5656)

Aaryan Khandelwale143e0a05179
diff --git a/live/package.json b/live/package.json
index e67cd5588e..84061f75e4 100644
--- a/live/package.json
+++ b/live/package.json
@@ -35,6 +35,7 @@
"morgan": "^1.10.0",
"pino-http": "^10.3.0",
"pino-pretty": "^11.2.2",
+ "uuid": "^10.0.0",
"y-prosemirror": "^1.2.9",
"y-protocols": "^1.0.6",
"yjs": "^13.6.14"
diff --git a/live/src/core/hocuspocus-server.ts b/live/src/core/hocuspocus-server.ts
index 8f6170ea31..fb30c8f828 100644
--- a/live/src/core/hocuspocus-server.ts
+++ b/live/src/core/hocuspocus-server.ts
@@ -1,11 +1,15 @@
import { Server } from "@hocuspocus/server";
-
+import { v4 as uuidv4 } from "uuid";
+// lib
import { handleAuthentication } from "@/core/lib/authentication.js";
+// extensions
import { getExtensions } from "@/core/extensions/index.js";
export const getHocusPocusServer = async () => {
const extensions = await getExtensions();
+ const serverName = process.env.HOSTNAME || uuidv4();
return Server.configure({
+ name: serverName,
onAuthenticate: async ({
requestHeaders,
requestParameters,