Official Supabase Puppeteer example does not work locally
Bug report
Describe the bug
I'm trying to follow the official puppeteer example but Puppeteer requires Deno to be run with the --unstable flag. See the documentation here:
deno run -A --unstable example.js
However, it seems that the Supabase CLI does not support passing additional parameters so running the official example locally does not work.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Init a new Supabase project
- Follow the steps as described here: official puppeteer example
- Run the example locally using the
supabase functions servecommand - See error
Expected behavior
For the example to work locally so that it can be tested before deploying.
Transferring to edge runtime repo since @supabase/edge-functions is maintaining the example code.
https://github.com/supabase/edge-runtime/assets/60560109/e22f5f10-9846-4715-b969-7490b950041e
Hey there!
So I tested this and I am getting some errors very sporadicly, like it runs sucessfully and then a few requests later it fails again, it seems like it might be an issue with the connection to browserless because nothing seems pointing out to an error from the edge runtime.
Let me know if you're also running into a similar sceneario.
Attaching the video for context ^^