fix: Add /api and /ws paths to backend URLs for correct routing

This commit is contained in:
M1ngdaXie
2026-01-12 01:33:27 -08:00
parent 1058299933
commit 192bcba109
4 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
import { useAuth } from '../contexts/AuthContext';
import './LoginPage.css';
const API_BASE_URL = import.meta.env.VITE_API_URL || "http://localhost:8080/api";
const API_BASE_URL = import.meta.env.VITE_API_URL || "https://docnest-backend-mingda.fly.dev/api";
function LoginPage() {
const { user, loading } = useAuth();