first time posting (so apologies if I get something wrong). I’m trying to get https://bitsofco.de/how-to-use-puppeteer-in-a-netlify-aws-lambda-function/ working, but I think I’m exceeding the lambda-functions memory limit. I’m elaborating on this Puppeteer demo by trying to get it working within a basic Gatsby site, but my “screenshot” function states “Memory Usage: 85 MB” when I try and hit the endpoint, and it fails with “ENOENT: no such file or directory, open ‘//…/bin/chromium.br’”.
However, a separate, basic “Hello, world!” function within the same repo (which works) is saying “Memory Usage: 77 MB” (which seems massive for what it’s doing).
Even this would exceed the supposed 50MB memory allocation, right? So why does it still work?
Is the memory usage of each function based on that individual function, or whatever else is being installed as part of the package.json?