Currently the function times out when deployed to a Cloud Function #1
If we cannot fix that consider Cloud Run, which would supply clearer and more explicit handling of Chrome Driver and Selenium installation. Cloud Functions technically use Cloud Run under the hood anyway...
https://dev.to/googlecloud/using-headless-chrome-with-cloud-run-3fdp