Fix TypeScript build error for Buffer to NextResponse
This commit is contained in:
@@ -28,7 +28,7 @@ export async function GET(
|
||||
return NextResponse.json({ error: "Ek bulunamadı" }, { status: 404 });
|
||||
}
|
||||
|
||||
return new NextResponse(att.content, {
|
||||
return new NextResponse(new Uint8Array(att.content), {
|
||||
headers: {
|
||||
"Content-Type": att.contentType,
|
||||
"Content-Disposition": `attachment; filename="${encodeURIComponent(filename)}"`,
|
||||
|
||||
Reference in New Issue
Block a user