Skip to content

Commit eb636a7

Browse files
committed
fix(files): wrap zip buffer in Uint8Array for NextResponse BodyInit compatibility
1 parent 51a6665 commit eb636a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/files/export/[id]

apps/sim/app/api/files/export/[id]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const GET = withRouteHandler(
141141
const zipBuffer = await zip.generateAsync({ type: 'nodebuffer', compression: 'DEFLATE' })
142142
const zipName = safeFilename(`${record.originalName.replace(/\.[^.]+$/, '')}.zip`)
143143

144-
return new NextResponse(zipBuffer, {
144+
return new NextResponse(new Uint8Array(zipBuffer), {
145145
status: 200,
146146
headers: {
147147
'Content-Type': 'application/zip',

0 commit comments

Comments
 (0)