feat: implement monthly glycemic report PDF generation and configure production build settings
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user