diff --git a/src/modules/server/api/dto/tldraw-config.response.ts b/src/modules/server/api/dto/tldraw-config.response.ts index 9c8eedc..1ce6311 100644 --- a/src/modules/server/api/dto/tldraw-config.response.ts +++ b/src/modules/server/api/dto/tldraw-config.response.ts @@ -24,7 +24,7 @@ export class TldrawPublicConfigResponse { public TLDRAW_ASSETS_ALLOWED_MIME_TYPES_LIST: string[]; @ApiProperty() - public TLDRAW_NOT_AUTHENTICATED_REDIRECT_URL: string; + public TLDRAW_NOT_AUTHENTICATED_REDIRECT_URL?: string; @ApiProperty() public TLDRAW_WEBSOCKET_URL: string; diff --git a/src/modules/server/tldraw-server.config.ts b/src/modules/server/tldraw-server.config.ts index 9722736..dd143c4 100644 --- a/src/modules/server/tldraw-server.config.ts +++ b/src/modules/server/tldraw-server.config.ts @@ -1,5 +1,5 @@ import { Transform } from 'class-transformer'; -import { IsArray, IsBoolean, IsNumber, IsString, IsUrl } from 'class-validator'; +import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, IsUrl } from 'class-validator'; export class TldrawServerConfig { @Transform(({ value }) => value === 'true') @@ -19,7 +19,8 @@ export class TldrawServerConfig { public TLDRAW_ASSETS_ALLOWED_MIME_TYPES_LIST = ['image/png', 'image/jpeg', 'image/gif', 'image/svg+xml']; @IsUrl() - public TLDRAW_NOT_AUTHENTICATED_REDIRECT_URL = ''; + @IsOptional() + public TLDRAW_NOT_AUTHENTICATED_REDIRECT_URL?: string; @IsString() public TLDRAW_WEBSOCKET_PATH = '';