diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 7f98fa9..3dd272c 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -11,7 +11,9 @@ import axios from 'axios'; -const API_BASE_URL = 'http://127.0.0.1:3000'; +const API_HOST = process.env.NEXT_PUBLIC_API_HOST || '127.0.0.1'; +const API_PORT = process.env.NEXT_PUBLIC_API_PORT || '3001'; +const API_BASE_URL = `http://${API_HOST}:${API_PORT}`; export interface User { id: string;