Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Increase build time for Google Cloud

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?

0 1 369
1 REPLY 1

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:

For more information, please refer to the best practices on optimizing your builds.

I hope the above information is helpful.