changed static paths to relative api paths so useable without cors

This commit is contained in:
2025-10-23 14:45:15 +02:00
parent e177c3d2a6
commit e82e584f76
4 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ interface AuthContextType {
}
const AuthContext = createContext<AuthContextType | undefined>(undefined);
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || 'http://localhost:3002/api';
const API_BASE_URL = process.env.REACT_APP_API_BASE_URL || '/api';
interface AuthProviderProps {
children: ReactNode;