We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 008204f + 51f3135 commit 2890e03Copy full SHA for 2890e03
client/src/App.tsx
@@ -48,7 +48,7 @@ import ToolsTab from "./components/ToolsTab";
48
49
const params = new URLSearchParams(window.location.search);
50
const PROXY_PORT = params.get("proxyPort") ?? "3000";
51
-const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`;
+const PROXY_SERVER_URL = `http://${window.location.hostname}:${PROXY_PORT}`;
52
53
const App = () => {
54
// Handle OAuth callback route
client/vite.config.ts
@@ -5,7 +5,9 @@ import { defineConfig } from "vite";
5
// https://vitejs.dev/config/
6
export default defineConfig({
7
plugins: [react()],
8
- server: {},
+ server: {
9
+ host: true,
10
+ },
11
resolve: {
12
alias: {
13
"@": path.resolve(__dirname, "./src"),
0 commit comments