Skip to content

Commit

Permalink
update to use serverless chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jan 5, 2025
1 parent c3d337e commit baad79b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .puppeteerrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
* @type {import("puppeteer").Configuration}
*/
module.exports = {
defaultProduct: 'firefox',
defaultProduct: 'chrome',
// Download Chrome (default `skipDownload: false`).
chrome: {
executablePath: 'node_modules/@sparticuz/chromium/bin/chromium.br',
skipDownload: true,
},
// Download Firefox (default `skipDownload: true`).
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@sindresorhus/slugify": "^2.1.1",
"@sparticuz/chromium": "^131.0.1",
"@tailwindcss/typography": "^0.5.10",
"@types/mdx": "^2.0.8",
"@types/node": "^20.10.8",
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,14 @@
dependencies:
escape-string-regexp "^5.0.0"

"@sparticuz/chromium@^131.0.1":
version "131.0.1"
resolved "https://registry.yarnpkg.com/@sparticuz/chromium/-/chromium-131.0.1.tgz#311e196f970b11dbb42b1d1abda101d151327818"
integrity sha512-VfmHkQmb/Px0zjwdSQwjRMwFw63Qfj+g4Giumz4jiAGEpXHgIZk6xEwlUz6yiUHVDveK2TEgMR2MR6I3okOE7w==
dependencies:
follow-redirects "^1.15.9"
tar-fs "^3.0.6"

"@swc/counter@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9"
Expand Down Expand Up @@ -4616,6 +4624,11 @@ flatted@^3.2.9:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==

follow-redirects@^1.15.9:
version "1.15.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1"
integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==

for-each@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
Expand Down

0 comments on commit baad79b

Please sign in to comment.