diff --git a/src/components/code-editor.tsx b/src/components/code-editor.tsx index 3fea4d1..8e784cf 100644 --- a/src/components/code-editor.tsx +++ b/src/components/code-editor.tsx @@ -27,7 +27,8 @@ export default function CodeEditor() { const { resolvedTheme } = useTheme(); useEffect(() => { - const url = normalizeUrl("ws://localhost:4594/clangd"); + const lspUrl = process.env.NEXT_PUBLIC_LSP_C_URL || "ws://localhost:4594/clangd"; + const url = normalizeUrl(lspUrl); const webSocket = new WebSocket(url); webSocket.onopen = async () => {