π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: add server name while server initialization (#5656)
Aaryan Khandelwale143e0a05179
diff --git a/live/package.json b/live/package.jsonindex 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.tsindex 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";+// libimport { handleAuthentication } from "@/core/lib/authentication.js";+// extensionsimport { 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,