Skip to content

Commit

Permalink
fix: cloudinary res secure_url (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace authored Oct 31, 2024
1 parent 78d0cad commit 6487268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/cloudinary/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function POST(req: Request) {

const uploadRes = await cloudinary.uploader.upload(base64Image);

return NextResponse.json({ url: uploadRes.url });
return NextResponse.json({ url: uploadRes.secure_url });
} catch (error) {
if (error instanceof Error)
return NextResponse.json({ message: error.message }, { status: 500 });
Expand Down

0 comments on commit 6487268

Please sign in to comment.