From 1a2de77ae27157e488d5f9343c5c3c84015907be Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 03:09:49 -0500 Subject: [PATCH] style: Update API URL construction for improved endpoint clarity --- client/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index c6ed2fb..8e7107c 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; + import React, { useEffect, useState } from 'react'; import Map3D from './components/Map3D'; import ControlPanel from './components/ControlPanel'; import VoiceControl from './components/VoiceControl'; @@ -21,7 +21,7 @@ function App() { }, [connect]); const renderPanelContent = () => { - const apiUrl = import.meta.env.VITE_API_URL || `${window.location.protocol}//${window.location.host}/api`; + const apiUrl = import.meta.env.VITE_API_URL || `${window.location.protocol}//${window.location.host}`; const wsUrl = import.meta.env.VITE_WS_URL || `${window.location.protocol === 'https:' ? 'wss:' : 'ws:'}//${window.location.host}/ws`; switch (panelTab) {