diff --git a/.puppeteerrc.js b/.puppeteerrc.js index d61b3c971..9c3d39a2b 100644 --- a/.puppeteerrc.js +++ b/.puppeteerrc.js @@ -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`). diff --git a/package.json b/package.json index aa23633b6..f85569d38 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index bd1951b68..58363912e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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"