1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

fix: process.env.* is always a string

This commit is contained in:
2024-10-22 21:17:21 +00:00
parent 77546dfde6
commit d0d4a4b677
+1 -1
View File
@@ -30,7 +30,7 @@ export async function GET(req: NextRequest): Promise<Response>
const [page, refs]: PDFPage[] = await newDoc.copyPages(srcDoc, [resume.pageIndex, srcDoc.getPageCount() - 1]); const [page, refs]: PDFPage[] = await newDoc.copyPages(srcDoc, [resume.pageIndex, srcDoc.getPageCount() - 1]);
newDoc.addPage(page); newDoc.addPage(page);
if (process.env.RESUME_HAS_REFS) if (process.env.RESUME_HAS_REFS === "true")
newDoc.addPage(refs); newDoc.addPage(refs);
// Serialize the new PDF document // Serialize the new PDF document