From d0d4a4b67733a2880df22b249cea4943e4a847cf Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Tue, 22 Oct 2024 21:17:21 +0000 Subject: [PATCH] fix: process.env.* is always a string --- app/resume/download/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/resume/download/route.ts b/app/resume/download/route.ts index 981f20b..e7cc43b 100644 --- a/app/resume/download/route.ts +++ b/app/resume/download/route.ts @@ -30,7 +30,7 @@ export async function GET(req: NextRequest): Promise const [page, refs]: PDFPage[] = await newDoc.copyPages(srcDoc, [resume.pageIndex, srcDoc.getPageCount() - 1]); newDoc.addPage(page); - if (process.env.RESUME_HAS_REFS) + if (process.env.RESUME_HAS_REFS === "true") newDoc.addPage(refs); // Serialize the new PDF document