diff --git a/website/post.js b/website/post.js index 361ca6133..e6fd53e4f 100644 --- a/website/post.js +++ b/website/post.js @@ -158,9 +158,6 @@ await fs.writeFile( console.log('✔ `/rss.xml`') -chromium.setHeadlessMode = true -chromium.setGraphicsMode = false - const browser = await puppeteer.launch( process.env.AWS_EXECUTION_ENV ? { @@ -168,7 +165,7 @@ const browser = await puppeteer.launch( args: [...chromium.args, '--disable-gpu'], defaultViewport: chromium.defaultViewport, executablePath: await chromium.executablePath(), - headless: chromium.headless + headless: true } : {headless: true} ) @@ -191,7 +188,6 @@ await pAll( // Don’t regenerate to improve performance. if (stats) return - console.log('trying OG `%s`', info.meta.title) const value = toHtml({ type: 'root', children: [