Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit baad79b

Browse files
committed
update to use serverless chrome
1 parent c3d337e commit baad79b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.puppeteerrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
* @type {import("puppeteer").Configuration}
33
*/
44
module.exports = {
5-
defaultProduct: 'firefox',
5+
defaultProduct: 'chrome',
66
// Download Chrome (default `skipDownload: false`).
77
chrome: {
8+
executablePath: 'node_modules/@sparticuz/chromium/bin/chromium.br',
89
skipDownload: true,
910
},
1011
// Download Firefox (default `skipDownload: true`).

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@radix-ui/react-slot": "^1.1.0",
4545
"@radix-ui/react-tabs": "^1.1.0",
4646
"@sindresorhus/slugify": "^2.1.1",
47+
"@sparticuz/chromium": "^131.0.1",
4748
"@tailwindcss/typography": "^0.5.10",
4849
"@types/mdx": "^2.0.8",
4950
"@types/node": "^20.10.8",

yarn.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,14 @@
17811781
dependencies:
17821782
escape-string-regexp "^5.0.0"
17831783

1784+
"@sparticuz/chromium@^131.0.1":
1785+
version "131.0.1"
1786+
resolved "https://registry.yarnpkg.com/@sparticuz/chromium/-/chromium-131.0.1.tgz#311e196f970b11dbb42b1d1abda101d151327818"
1787+
integrity sha512-VfmHkQmb/Px0zjwdSQwjRMwFw63Qfj+g4Giumz4jiAGEpXHgIZk6xEwlUz6yiUHVDveK2TEgMR2MR6I3okOE7w==
1788+
dependencies:
1789+
follow-redirects "^1.15.9"
1790+
tar-fs "^3.0.6"
1791+
17841792
"@swc/counter@^0.1.3":
17851793
version "0.1.3"
17861794
resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9"
@@ -4616,6 +4624,11 @@ flatted@^3.2.9:
46164624
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
46174625
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
46184626

4627+
follow-redirects@^1.15.9:
4628+
version "1.15.9"
4629+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1"
4630+
integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==
4631+
46194632
for-each@^0.3.3:
46204633
version "0.3.3"
46214634
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"

0 commit comments

Comments
 (0)