Skip to content

Commit

Permalink
Enable Yorkie devtools (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
devleejb authored Jun 26, 2024
1 parent 4a37c70 commit 9088cca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion frontend/.env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
NODE_ENV=development
VITE_API_ADDR="https://codepair-api.yorkie.dev"
VITE_YORKIE_API_ADDR="https://api.yorkie.dev"
VITE_YORKIE_API_KEY="cbovg64qfu96agb5i0fg"
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/hooks/useYorkieDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const useYorkieDocument = (
const newDoc = new yorkie.Document<
YorkieCodeMirrorDocType,
YorkieCodeMirrorPresenceType
>(yorkieDocumentId);
>(yorkieDocumentId, {
enableDevtools: true,
});

await newClient.attach(newDoc, {
initialPresence: {
Expand Down

0 comments on commit 9088cca

Please sign in to comment.