Usage of headless browser like chrome on Vercel?
Unanswered
Cinnamon Teal posted this in #help-forum
Cinnamon TealOP
Hello,
I would like to use a headless browser like chrome/chromium for my pupeteer code deployed on the vercel server. (free tier)
I read a lot about people trying to achieve this by using expensive browserles.io licenses. They are looking for a solutiion to avoid the 50MB size limit to have chrome deployed on vercel (is this 50mb limit still true btw?) as part of their vercel project deployment.
Is there currently a -Vercel recommended- best practice to achieve this goal (browser headless usage) ? Would it help if I upgrade my Vercel license?
Thank you for any help on this.
I would like to use a headless browser like chrome/chromium for my pupeteer code deployed on the vercel server. (free tier)
I read a lot about people trying to achieve this by using expensive browserles.io licenses. They are looking for a solutiion to avoid the 50MB size limit to have chrome deployed on vercel (is this 50mb limit still true btw?) as part of their vercel project deployment.
Is there currently a -Vercel recommended- best practice to achieve this goal (browser headless usage) ? Would it help if I upgrade my Vercel license?
Thank you for any help on this.
5 Replies
@Cinnamon Teal Hello,
I would like to use a headless browser like chrome/chromium for my pupeteer code deployed on the vercel server. (free tier)
I read a lot about people trying to achieve this by using expensive browserles.io licenses. They are looking for a solutiion to avoid the 50MB size limit to have chrome deployed on vercel (is this 50mb limit still true btw?) as part of their vercel project deployment.
Is there currently a -Vercel recommended- best practice to achieve this goal (browser headless usage) ? Would it help if I upgrade my Vercel license?
Thank you for any help on this.
the limit is a hard limit enforced by AWS, so Vercel can't do anything about it. the limit is still enforced now and is not plan-dependent.
you can check this thread for more detailed discussions on hosting headless browsers on vercel: https://github.com/orgs/vercel/discussions/124
you can check this thread for more detailed discussions on hosting headless browsers on vercel: https://github.com/orgs/vercel/discussions/124
@Cinnamon Teal Hello,
I would like to use a headless browser like chrome/chromium for my pupeteer code deployed on the vercel server. (free tier)
I read a lot about people trying to achieve this by using expensive browserles.io licenses. They are looking for a solutiion to avoid the 50MB size limit to have chrome deployed on vercel (is this 50mb limit still true btw?) as part of their vercel project deployment.
Is there currently a -Vercel recommended- best practice to achieve this goal (browser headless usage) ? Would it help if I upgrade my Vercel license?
Thank you for any help on this.
Sun bear
What exactly are you planning to do? I wanted go create an image out of html. I tried it with puppeteer and after many tries I used nextjs imageresponse to do it.
Just in case there is an alternative I would search for it 😅
Just in case there is an alternative I would search for it 😅
yeah
the only major limitation of
ImageResponse is a solid choice. or satori – the backend of ImageResponse, if you want to get the svg versions of the rendered htmlthe only major limitation of
ImageResponse/satori that I can think of is that they only support a subset of css, but if you just want to create og images and similar things, they are very good for that.Sun bear
Yes agree on that. I had to refactor the html generation a lot to fit the imageresponse specs but its working way easier than other solutions at least for my case.
So when you want to generate Images i would recommend to test it
So when you want to generate Images i would recommend to test it
@Sun bear What exactly are you planning to do? I wanted go create an image out of html. I tried it with puppeteer and after many tries I used nextjs imageresponse to do it.
Just in case there is an alternative I would search for it 😅
Cinnamon TealOP
I would like to scrape an html page and upload the scraped data in my database. (Additionally I would also generate a pdf out of it and store it on the Vercel server but this is only for log/debug purposes