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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user