diff --git a/src/services/analyze.service.ts b/src/services/analyze.service.ts index f4a916b..3518249 100644 --- a/src/services/analyze.service.ts +++ b/src/services/analyze.service.ts @@ -71,7 +71,7 @@ export const getAIRecommendation = async ( options?: { signal?: AbortSignal }, ): Promise => { console.log("Fetching to FastAPI..."); - const aiRes = await fetch(aiRecommendPath, { + const aiRes = await fetch(`${process.env.BACKEND_URL}/recommend`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload),