We are trying to deploy a Firebase function but we are facing issues with the build time. Some of the dependencies such as Puppeteer are taking a while to install. The deploy was successful once earlier, but now it is giving a timeout error 'Context Deadline exceeded'. How can we troubleshoot this issue, optimize the build process, or increase the build time limit to successfully deploy our function?
Hi @Yashraj254,
Welcome to Google Cloud Community!
It seems like you've encountered a timeout error while deploying your function. This can happen when uploading all libraries, downloading dependencies, or when the build process exceeds the default build time limit.
Here are some workarounds that might help you fix the issue:
gcloud config set app/cloud_build_timeout [ENTER SECONDS]
For more information, please refer to the best practices on optimizing your builds.
I hope the above information is helpful.