diff --git a/package-lock.json b/package-lock.json index d546c4c4a..638910e20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "devDependencies": { "@babel/core": "^7.0.0", "@node-loader/core": "^2.0.0", - "@sparticuz/chromium": "^117.0.0", + "@sparticuz/chromium-min": "^117.0.0", "@types/babel__core": "^7.0.0", "@types/dlv": "^1.0.0", "@types/mdx": "^2.0.0", @@ -1646,10 +1646,10 @@ "win32" ] }, - "node_modules/@sparticuz/chromium": { + "node_modules/@sparticuz/chromium-min": { "version": "117.0.0", - "resolved": "https://registry.npmjs.org/@sparticuz/chromium/-/chromium-117.0.0.tgz", - "integrity": "sha512-MXvxLgGt7e1bjOu6AwpemRnhrF+wxLxsHpkiOuJOLsfHAtT0VNlsnhAULQZ7hNXGhr37cTM2sCifUHwgrVH+sA==", + "resolved": "https://registry.npmjs.org/@sparticuz/chromium-min/-/chromium-min-117.0.0.tgz", + "integrity": "sha512-T4UvMm7Rw1puIhLxysnU1eLAcddtGswRqpIUVjXU1adXf5gR8a2ywD+HFo/J+ZEmdSgju3uT48pJqSqEywDdmg==", "dev": true, "dependencies": { "follow-redirects": "^1.15.2", diff --git a/package.json b/package.json index 96c748a50..70b996b19 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "devDependencies": { "@babel/core": "^7.0.0", "@node-loader/core": "^2.0.0", - "@sparticuz/chromium": "^117.0.0", + "@sparticuz/chromium-min": "^117.0.0", "@types/babel__core": "^7.0.0", "@types/dlv": "^1.0.0", "@types/mdx": "^2.0.0", diff --git a/website/post.js b/website/post.js index adab3d861..b98c3fa33 100644 --- a/website/post.js +++ b/website/post.js @@ -30,7 +30,7 @@ import rehypeParse from 'rehype-parse' import rehypeSanitize, {defaultSchema} from 'rehype-sanitize' import rehypeStringify from 'rehype-stringify' import captureWebsite from 'capture-website' -import chromium from '@sparticuz/chromium' +import chromium from '@sparticuz/chromium-min' import {config} from '../docs/_config.js' import {schema} from './schema-description.js' @@ -356,7 +356,9 @@ await pAll( ? { args: chromium.args, defaultViewport: chromium.defaultViewport, - executablePath: await chromium.executablePath(), + executablePath: await chromium.executablePath( + 'https://github.com/Sparticuz/chromium/releases/download/v117.0.0/chromium-v117.0.0-pack.tar' + ), headless: chromium.headless } : {headless: 'new'},