From 83e577e637293eb8f1726639c6f45eaabb456b3c Mon Sep 17 00:00:00 2001 From: yewonJin Date: Thu, 14 Nov 2024 10:41:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=99=98=EA=B2=BD=20=EB=B3=80=EC=88=98?= =?UTF-8?q?=EB=A5=BC=20=ED=86=B5=ED=95=9C=20API=20=EB=B0=8F=20=EC=9B=B9=20?= =?UTF-8?q?=EC=84=9C=EB=B2=84=20URL=20=EA=B4=80=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/EditorView.tsx | 2 +- frontend/src/components/canvas/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/EditorView.tsx b/frontend/src/components/EditorView.tsx index c47e0df5..cf8743b2 100644 --- a/frontend/src/components/EditorView.tsx +++ b/frontend/src/components/EditorView.tsx @@ -26,7 +26,7 @@ export default function EditorView() { const provider = useMemo(() => { return new WebsocketProvider( - "ws://localhost:1234", + import.meta.env.VITE_WS_URL, `document-${currentPage}`, ydoc, ); diff --git a/frontend/src/components/canvas/index.tsx b/frontend/src/components/canvas/index.tsx index 4d2a611c..b89f5e03 100644 --- a/frontend/src/components/canvas/index.tsx +++ b/frontend/src/components/canvas/index.tsx @@ -42,7 +42,7 @@ export default function Canvas({ className }: CanvasProps) { useEffect(() => { const doc = new Y.Doc(); const wsProvider = new WebsocketProvider( - "ws://localhost:1234", + import.meta.env.VITE_WS_URL, "flow-room", doc, );