feat: implement monthly glycemic report PDF generation and configure production build settings

This commit is contained in:
jeremy bayse
2026-04-27 11:25:51 +02:00
parent e7f151d14e
commit 8df7a5ace8
4 changed files with 25 additions and 12 deletions

View File

@@ -258,7 +258,8 @@ export async function GET(request: NextRequest) {
y -= 16;
});
const pdfBuffer = await doc.save();
const pdfBytes = await doc.save();
const pdfBuffer = Buffer.from(pdfBytes);
return new NextResponse(pdfBuffer, {
headers: {