firebase / firebase-tools

The Firebase Command Line Tools
MIT License
3.97k stars 917 forks source link

fix: Stop timeout on loading code in functions and simply warn #7167

Closed takahashi-shotaro-al closed 1 month ago

takahashi-shotaro-al commented 2 months ago

Description

fix #7165

On a low-spec machine or Windows, it is slower than the actual deployment environment and may take more than 10 seconds to load the source code for functions. ( https://github.com/microsoft/Windows-Dev-Performance/issues/17 )

Scenarios Tested

We now have emulators:start working in our production code.

Sample Commands

joehan commented 1 month ago

Thanks for the contribution! We're not comfortable getting rid of this timeout fully, so we are going to go with https://github.com/firebase/firebase-tools/pull/7176 instead, which will let you configure this timeout by setting FUNCTIONS_DISCOVERY_TIMEOUT.