Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .puppeteerrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const isCI = !!process.env.VERCEL_ENV

/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
cacheDirectory: '/vercel/.cache/puppeteer',
executablePath:
'/vercel/.cache/puppeteer/chrome/linux-131.0.6778.204/chrome-linux64/chrome',
chrome: {
skipDownload: isCI,
},
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
}
9 changes: 0 additions & 9 deletions puppeteer.config.json

This file was deleted.

2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"buildCommand": "yarn build",
"installCommand": "dnf install -y $(cat chrome-dependencies.txt) && npx browsers install chrome@131.0.6778.204 --path /vercel/.cache/puppeteer && yarn install",
"installCommand": "dnf install -y $(cat chrome-dependencies.txt) && yarn install && npx browsers install chrome@131.0.6778.204 --path /vercel/.cache/puppeteer",
"framework": "nextjs"
}
Loading