diff --git a/frontend/src/contexts/AuthContext.tsx b/frontend/src/contexts/AuthContext.tsx index 41b134ca..f8dc224c 100644 --- a/frontend/src/contexts/AuthContext.tsx +++ b/frontend/src/contexts/AuthContext.tsx @@ -84,7 +84,8 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { language: string = 'en' ) => { try { - const response = await fetch('http://localhost:8001/api/auth/signup', { + const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001'; + const response = await fetch(`${backendUrl}/api/auth/signup`, { method: 'POST', headers: { 'Content-Type': 'application/json',