Skip to content

Commit

Permalink
debugged blogs page (#112)
Browse files Browse the repository at this point in the history
blogs page
  • Loading branch information
Anas-github-acc authored Aug 23, 2024
1 parent d6a4aef commit 484fcf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/v1/get/blogs/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ export async function GET(request: NextRequest): Promise<NextResponse> {
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);
}

Expand Down

1 comment on commit 484fcf0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for iiitvcc ready!

✅ Preview
https://iiitvcc-gt0wuml4b-iiitv-coding-clubs-projects.vercel.app

Built with commit 484fcf0.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.