Skip to content

Commit

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

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

await captureWebsite.file(file.value, fileURLToPath(output), {
launchOptions: process.env.AWS_EXECUTION_ENV
launchOptions: process.env.VERCEL
? {
args: chromium.args,
defaultViewport: chromium.defaultViewport,
Expand Down

0 comments on commit e7655c0

Please sign in to comment.