ddamico/gluco-check-frontend

Firebase init error on nightly

Closed this issue · 2 comments

Just checked https://nightly.diabase.app & https://nightly.glucocheck.app.
Both were just showing blank pages, and this error in the console:
image

Is it possible they were deployed with a missing/incomplete .env file?
I've rolled back an older build (1 Mar 2021 20:55 UTC ec3be2) as a quick fix

😡 very frustrating, as I thought I had verified the deploy before finishing up last night.

Definitely was an issue of missing env, it is too early for me to be sure of this (haha) but I think this was caused by the build in the predeploy hook not injecting the firebase config env, and overwriting the build with env that happens in the gha pipeline, which makes some sense thinking about it now.

Have pulled that build, and a fresh deploy on merge to main was successful. Have also added a deploy command, yarn deploy will now run a build and deploy.

I think this is now resolved, can reopen if not.