diff --git a/client/lib/supabase-service.ts b/client/lib/supabase-service.ts index 3beee1ea..e9d14da2 100644 --- a/client/lib/supabase-service.ts +++ b/client/lib/supabase-service.ts @@ -401,7 +401,7 @@ export const communityService = { >, ): Promise { try { - const resp = await fetch(`/api/posts`, { + const resp = await fetch(`${API_BASE}/api/posts`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(post),