What you're trying to do just won't work. You can either deploy a Laravel site without a headless browser to Vercel, or you can deploy a Laravel site with a headless browser to a provider that has looser limits on the total deployment size (think: a VPS or DigitalOcean Droplet, but those come with their own drawbacks, like having to manage the OS and its security yourself).
Feb 12, 2024
2
Level 1
Deploy a laravel app with a headless browser to vercel
Im trying to deploy a laravel web app to vercel. the problem is that headless browsers for laravel like puphpeteer or chrome php are to heavy for vercel. i get the 250mb serverless function size exceeded error.
So im wondering if there is any workaround to this without the need to pay for a vercel subscription.
I dont need anything too fancy i just want to use the browser to scrape data from some dynamic websites that only show info after js is loaded.
i tried already with browsershot, puphpeteer and chromephp.
Please or to participate in this conversation.