From 3c732463bff688cb671f982823ee699ad4957289 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 16 Oct 2023 17:32:10 +0200 Subject: [PATCH] how about forcing pages? --- website/post.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/website/post.js b/website/post.js index 9993ffeb1..64238a8ba 100644 --- a/website/post.js +++ b/website/post.js @@ -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')