google / ground-platform

Ground hosted components: Web console, Cloud Functions, db config
http://groundplatform.org
Apache License 2.0
202 stars 80 forks source link

Fix site crash #1853

Closed gino-m closed 1 month ago

gino-m commented 1 month ago

Refactors recently introduced lazy init of Firebase app to allow it to be initialized independently of Firestore by functions that need it, like the recently broken /profile-refresh function.

Thank you @sufyanAbbasi for fixing the deployment issues that were blocking this fix.

@amysorto @shobhitagarwal1612 FYI

Fixes #1846

Apologies in advance for using admin rights to merge this without approval as it's a weekend and the dev site is currently down.