From 5708d5a1afa943687a2aada3b77e85cf7a131f31 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 02:56:21 +0000 Subject: [PATCH] Fix remaining relative URLs in supabase-service.ts cgen-40d16f1e5a7a4ca2acf3e12f48b5434e --- client/lib/supabase-service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/lib/supabase-service.ts b/client/lib/supabase-service.ts index 0b8f6019..d1a6af21 100644 --- a/client/lib/supabase-service.ts +++ b/client/lib/supabase-service.ts @@ -447,7 +447,7 @@ export const communityService = { async likePost(postId: string, userId: string): Promise { try { const resp = await fetch( - `/api/community/posts/${encodeURIComponent(postId)}/like`, + `${API_BASE}/api/community/posts/${encodeURIComponent(postId)}/like`, { method: "POST", headers: { "Content-Type": "application/json" }, @@ -465,7 +465,7 @@ export const communityService = { async unlikePost(postId: string, userId: string): Promise { try { const resp = await fetch( - `/api/community/posts/${encodeURIComponent(postId)}/unlike`, + `${API_BASE}/api/community/posts/${encodeURIComponent(postId)}/unlike`, { method: "POST", headers: { "Content-Type": "application/json" }, @@ -483,7 +483,7 @@ export const communityService = { async listComments(postId: string): Promise { try { const resp = await fetch( - `/api/community/posts/${encodeURIComponent(postId)}/comments`, + `${API_BASE}/api/community/posts/${encodeURIComponent(postId)}/comments`, ); if (!resp.ok) return []; return await resp.json(); @@ -498,7 +498,7 @@ export const communityService = { content: string, ): Promise { const resp = await fetch( - `/api/community/posts/${encodeURIComponent(postId)}/comments`, + `${API_BASE}/api/community/posts/${encodeURIComponent(postId)}/comments`, { method: "POST", headers: { "Content-Type": "application/json" },