diff --git a/src/app/api/v1/get/blogs/route.ts b/src/app/api/v1/get/blogs/route.ts index ed3b0bf..9f5b896 100644 --- a/src/app/api/v1/get/blogs/route.ts +++ b/src/app/api/v1/get/blogs/route.ts @@ -36,10 +36,11 @@ export async function GET(request: NextRequest): Promise { const blogFileUrl = `${getPublicUrl(`/blogs/${blog.id}/blog`)}`; const { data: images, error: imagesError } = await supabase.storage - .from(process.env.BUCKET || "") + .from(process.env.NEXT_PUBLIC_BUCKET || "") .list(`images/${blog.id}`); if (imagesError) { + console.log("imagesError", imagesError); throw new Error(imagesError.message); }