stefanjudis / tiny-helpers

A collection of useful online web development tools
https://tiny-helpers.dev
MIT License
954 stars 319 forks source link

Does https://www.stefanjudis.com/blog/how-to-use-headless-chrome-in-serverless-functions/ still work for you? #516

Closed ryancwalsh closed 8 months ago

ryancwalsh commented 9 months ago

Thanks for that article!

I'm in a similar situation.

I'd love to use the free Vercel Hobby plan. I could use my $6/mo Digital Ocean server, but I'd need to upgrade its Ubuntu, which would be a pain.

To get your https://www.stefanjudis.com/blog/how-to-use-headless-chrome-in-serverless-functions/ solution working I needed this advice: https://github.com/puppeteer/puppeteer/issues/11052#issuecomment-1738988091

Now it builds fine.

But when I try on Vercel, I still get the timeout.

Does it still work for you these days?

Thanks!

0x-m1cro commented 8 months ago

I wish to know likewise, bump. Currently im using render, but the 12 minute timeout is pain. So before i change to vercel i need to confirm. Thank you!

stefanjudis commented 8 months ago

Hey friends! 👋

It's a bit odd, that you're hijacking the issues here. 😅 The code is open source and runs right now on vercel. And it works as you see on tiny-helpers.dev.

Does it still work for you these days?

Yes, as mentioned, it's running in production on vercel as we speak. 👇 Here's the code.

https://github.com/stefanjudis/tiny-helpers/blob/primary/api/screenshot.js

So before i change to vercel i need to confirm.

The code is linked above and give it a try. :)

ryancwalsh commented 8 months ago

Cool, it's helpful to hear that it's still working for you. Thanks.

On Tue, Feb 13, 2024, 7:36 AM Stefan Judis @.***> wrote:

Hey friends! 👋

It's a bit odd, that you're hijacking the issues here. 😅 The code is open source and runs right now on vercel. And it works as you see on tiny-helpers.dev.

Does it still work for you these days?

Yes, as mentioned, it's running in production on vercel as we speak. 👇 Here's the code.

https://github.com/stefanjudis/tiny-helpers/blob/primary/api/screenshot.js

So before i change to vercel i need to confirm.

The code is linked above and give it a try. :)

— Reply to this email directly, view it on GitHub https://github.com/stefanjudis/tiny-helpers/issues/516#issuecomment-1941428553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP5MXIV46BLUMOSTRH7ONTYTNM5ZAVCNFSM6AAAAABDC5I53KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGQZDQNJVGM . You are receiving this because you authored the thread.Message ID: @.***>