Using Puppeteer
This example shows how you can use Puppeteer and a headless-browser to generate screenshots of a web page. Pass the url
of the web page as a query string.
Since Edge Functions cannot run a Headless Browser instance due to resource constraints, you will need to use a hosted browser service like https://browserless.io.
Develop locally
supabase functions serve --env-file ./supabase/.env.local --no-verify-jwt
Navigate to http://localhost:54321/functions/v1/puppeteer
Deploy
supabase functions deploy puppeteer --no-verify-jwt