Skip to content

Commit

Permalink
undo some things
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 13, 2024
1 parent 2acc578 commit 51f5f3c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions website/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,14 @@ await fs.writeFile(

console.log('✔ `/rss.xml`')

chromium.setHeadlessMode = true
chromium.setGraphicsMode = false

const browser = await puppeteer.launch(
process.env.AWS_EXECUTION_ENV
? {
// See: <https://github.com/Sparticuz/chromium/issues/85#issuecomment-1527692751>
args: [...chromium.args, '--disable-gpu'],
defaultViewport: chromium.defaultViewport,
executablePath: await chromium.executablePath(),
headless: chromium.headless
headless: true
}
: {headless: true}
)
Expand All @@ -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: [
Expand Down

0 comments on commit 51f5f3c

Please sign in to comment.