1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-21 08:31:50 +02:00

Add terraform assets

This commit is contained in:
Kamran Ahmed
2024-06-21 21:25:05 +01:00
parent c4cc0630c0
commit 4c54e20a11
3 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 KiB

View File

@@ -56,6 +56,7 @@ const pageUrl = `http://localhost:3000/${roadmapId}/svg`;
console.log(`Opening page ${pageUrl}`); console.log(`Opening page ${pageUrl}`);
await page.goto(pageUrl); await page.goto(pageUrl);
await page.waitForSelector('#resource-svg-wrap'); await page.waitForSelector('#resource-svg-wrap');
await page.waitForTimeout(5000);
console.log(`Generating PDF ${pageUrl}`); console.log(`Generating PDF ${pageUrl}`);
await page.pdf({ await page.pdf({
path: `./public/pdfs/roadmaps/${roadmapId}.pdf`, path: `./public/pdfs/roadmaps/${roadmapId}.pdf`,