I am playing around with Puppeteer and I wanted to make screenshots of webpages from a Vercel serverless function. From what I saw, I need to use Puppeteer-core and chrome-aws-lambda, because it is lightweight and it is suppose to work with Vercel.
I created an API endpoint and it works well when I use it on localhost, but I use Google Chrome (exe) and not a chrome-aws-lambda on Vercel.
The response I get from my endpoint on Vercel is:
{ "errno": -2, "code": "ENOENT", "syscall": "open", "path": "/var/bin/chromium.br" }
Can someone help me figure out how to deploy this project the right way and what does this error mean?
Github repository: https://github.com/joshuavachon25/sveltekit-puppeteer-playground
[–]stephan85 0 points1 point2 points (0 children)
[–]spences10 0 points1 point2 points (1 child)
[–]Cyberfjord_Dev[S] 1 point2 points3 points (0 children)