Node Crtical/Penthouse in AWS Lambda

176 Views Asked by At

Since uploading files to AWS Lambda has 250MB limit, how can I setup a node project and use Critical? Mainly dont have issue with the package but its dependency Puppeteer that is using chromium. If I will use other than puppeteer, how can I make Critical to not use the puppeteer binaries? I'm pretty new to AWS and nodejs.

1

There are 1 best solutions below

0
Fraser On

As in the duplicated question comment - you can simply reduce the size of your node_modules by using a CDN such as unpkg, jsDelivr, etc.