Skip to content

Commit f6824bc

Browse files
committed
update: added licence key for tldraw
1 parent 6c6c4a6 commit f6824bc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LOG_LEVEL=info
1616
NODE_ENV=development
1717
DATABASE_URL= #PostgreSQL connection string
1818
REACT_APP_GRAPHQL_ENDPOINT= #GraphQL endpoint URL (e.g., http://localhost:3000/graphql)
19+
VITE_TLDRAW_LICENSE_KEY= #tldraw license key for production
1920

2021
###############################################################
2122
# Security Settings

frontend/src/features/board/components/BoardWhiteboard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ export const BoardWhiteboard = ({ boardId, initialData }: BoardWhiteboardProps)
8484
}
8585
}, [initialData]);
8686

87+
const licenseKey = import.meta.env.VITE_TLDRAW_LICENSE_KEY;
88+
8789
return (
8890
<div className="absolute inset-0">
89-
<Tldraw onMount={handleMount} />
91+
<Tldraw onMount={handleMount} licenseKey={licenseKey} />
9092
</div>
9193
);
9294
};

0 commit comments

Comments
 (0)