fix: debug clear path for backend url
This commit is contained in:
parent
54fd6ac26b
commit
9369a29086
|
|
@ -72,7 +72,8 @@ export const getAIRecommendation = async (
|
||||||
options?: { signal?: AbortSignal },
|
options?: { signal?: AbortSignal },
|
||||||
): Promise<AIRecommendationResponse> => {
|
): Promise<AIRecommendationResponse> => {
|
||||||
const base_url = process.env.BACKEND_URL;
|
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`, {
|
const aiRes = await fetch(`${base_url}/recommend`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue