Skip to content

Commit

Permalink
how about forcing pages?
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 16, 2023
1 parent d29d8bf commit 3c73246
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions website/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,13 @@ await pAll(
{concurrency: 1}
)

// Note: this should be awaited, but it hangs on Vercel.
browser.close()
const pages = await browser.pages()
console.log('are there still pages?', pages)
for (const page of pages) {
// eslint-disable-next-line no-await-in-loop
await page.close()
}

await browser.close()

console.log('✔ OG images')

0 comments on commit 3c73246

Please sign in to comment.