Skip to content

Commit

Permalink
concur!
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 16, 2023
1 parent e7655c0 commit 253f387
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions website/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,9 @@ await pAll(
await fs.unlink(output)
} catch {}

console.log('aws?', [process.env.AWS_EXECUTION_ENV], process.env)

console.log('cature:', fileURLToPath(output))
await captureWebsite.file(file.value, fileURLToPath(output), {
launchOptions: process.env.VERCEL
launchOptions: process.env.AWS_EXECUTION_ENV
? {
args: chromium.args,
defaultViewport: chromium.defaultViewport,
Expand All @@ -369,7 +368,7 @@ await pAll(

console.log('OG image `%s`', info.meta.title)
}),
{concurrency: 6}
{concurrency: 3}
)

console.log('✔ OG images')

0 comments on commit 253f387

Please sign in to comment.