简体   繁体   中英

Puppeteer taking up too much space. Can't push app to Heroku

I have a very small node app I am trying to push to Heroku, but puppeteer is taking up so much space that I am exceeding the 500MB slug size limit (532MB when compiled). What can I do to bring the slug size down? Everything else in node_modules is under 2MB.

Must Puppeteer install and run on Heroku? If not, remove it from package.json . Or, consider moving Puppeteer from package.json's dependencies to devDependencies .

If you do need Puppeteer running remotely on a server in the cloud, consider using a pre-existing cloud service that runs Puppeteer scripts:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM