Skip to content

Commit

Permalink
BC-7171 - make TLDRAW_NOT_AUTHENTICATED_REDIRECT_URL optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bergatco committed Dec 12, 2024
1 parent ad1832e commit b47ee89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/server/api/dto/tldraw-config.response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/modules/server/tldraw-server.config.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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 = '';
Expand Down

0 comments on commit b47ee89

Please sign in to comment.