Skip to content

Commit

Permalink
fix url composition
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomorebonato committed Jun 27, 2023
1 parent e85b6f9 commit d91c8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/features/collab-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const CollabEditor = () => {

const hocuspocus = new HocuspocusProvider({
document: ydoc,
url: `ws://localhost:3000/api/editor/${DOC_NAME}`,
url,
name: DOC_NAME,
onConnect() {
console.log(`${DOC_NAME} connected`)
Expand Down

0 comments on commit d91c8f9

Please sign in to comment.