I'm trying to use Puppeteer + Firebase Functions while using the headless: false option
await puppeteer.launch({
headless: false
});
It works well locally. I use the headless: false so it won't trigger a bot check, which work well.
When I deploy it to Firebase Functions it doesn't seem to be able to launch a browser:
Error: Failed to launch the browser process!
[15:32:0209/162803.759118:ERROR:file_path_watcher_linux.cc(78)] Failed to read /proc/sys/fs/inotify/max_user_watches
[15:15:0209/162804.834741:ERROR:ozone_platform_x11.cc(234)] Missing X server or $DISPLAY
[15:15:0209/162804.834794:ERROR:env.cc(225)] The platform failed to initialize. Exiting.
Is there some sort of a solution to run it as a Firebase Function?