From 113e6cd0718ddc8ffeafa6396fd0186d38547f1e Mon Sep 17 00:00:00 2001 From: SevenWaysDP Date: Thu, 5 Dec 2024 13:44:30 +0100 Subject: [PATCH] BC-8510 - Add Tldraw client configuration to board collaboration settings --- apps/server/src/modules/board/board-collaboration.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/src/modules/board/board-collaboration.config.ts b/apps/server/src/modules/board/board-collaboration.config.ts index 5a74844d2af..e824b4ca867 100644 --- a/apps/server/src/modules/board/board-collaboration.config.ts +++ b/apps/server/src/modules/board/board-collaboration.config.ts @@ -1,6 +1,7 @@ import { Configuration } from '@hpi-schul-cloud/commons'; import { JwtAuthGuardConfig } from '@infra/auth-guard'; import { Algorithm } from 'jsonwebtoken'; +import { getTldrawClientConfig } from '../tldraw-client'; export interface BoardCollaborationConfig extends JwtAuthGuardConfig { NEST_LOG_LEVEL: string; @@ -13,6 +14,7 @@ const boardCollaborationConfig: BoardCollaborationConfig = { JWT_PUBLIC_KEY: (Configuration.get('JWT_PUBLIC_KEY') as string).replace(/\\n/g, '\n'), JWT_SIGNING_ALGORITHM: Configuration.get('JWT_SIGNING_ALGORITHM') as Algorithm, SC_DOMAIN: Configuration.get('SC_DOMAIN') as string, + ...getTldrawClientConfig(), }; export const config = () => boardCollaborationConfig;