import puppeteer from 'puppeteer'; async function ssr(url) { const browser = await puppeteer.launch({headless: true}); const page = await browser.newPage(); await page.goto(url, {waitUntil: 'networkidle0'}); const html = await page.content(); // serialized HTML of page DOM. await browser.close(); return html; } Why use Headless Chrome? You may be interested in Headless Chrome if: You've built a we