Merge pull request #201 from Larmyliu/feat/proxyServerUrl

Update Vite configuration to enable host access and use `window.location.hostname` for Inspector URL
This commit is contained in:
Ola Hungerford 2025-03-22 21:13:39 -07:00 • committed by GitHub
commit 2890e036ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ import ToolsTab from "./components/ToolsTab";
const params = new URLSearchParams(window.location.search);
const PROXY_PORT = params.get("proxyPort") ?? "3000";
const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`;
const PROXY_SERVER_URL = `http://${window.location.hostname}:${PROXY_PORT}`;
const App = () => {
// Handle OAuth callback route