fix: debug clear path for backend url

This commit is contained in:
Mahen 2026-05-19 14:26:54 +07:00
parent 54fd6ac26b
commit 9369a29086
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ export const getAIRecommendation = async (
options?: { signal?: AbortSignal },
): Promise<AIRecommendationResponse> => {
const base_url = process.env.BACKEND_URL;
console.log("BASE URL:", base_url);
console.log("FULL TARGET URL:", `${base_url}/recommend`);
const aiRes = await fetch(`${base_url}/recommend`, {
method: "POST",
headers: { "Content-Type": "application/json" },