We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eaef27 commit a551d01Copy full SHA for a551d01
1 file changed
client/src/hooks/use-import-stream.ts
@@ -23,7 +23,8 @@ type ImportState =
23
| { status: 'done'; result: ImportResult }
24
| { status: 'error'; error: string };
25
26
-const API_BASE = import.meta.env.DEV ? 'http://localhost:3721' : '';
+// In dev mode, use relative path so the request goes through Vite's proxy
27
+const API_BASE = '';
28
29
export function useImportStream() {
30
const [state, setState] = useState<ImportState>({ status: 'idle' });
0 commit comments