Skip to content

Commit

Permalink
Fix build with Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed May 22, 2024
1 parent 331c021 commit 068ff54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/docs/pages/docs/code-snippets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function GET() {
})
.join("");

controller.enqueue(csv);
controller.enqueue(Buffer.from(csv));

skip += batchSize;
} while (users.length === batchSize);
Expand Down
2 changes: 1 addition & 1 deletion apps/example/app/api/users/export/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function GET() {
return `${user.id},${user.name},${user.email},${user.role},${user.birthDate}\n`;
})
.join("");
controller.enqueue(csv);
controller.enqueue(Buffer.from(csv));
skip += batchSize;
} while (users.length === batchSize);
} catch (error) {
Expand Down

0 comments on commit 068ff54

Please sign in to comment.