【发布时间】:2020-11-24 16:18:42
【问题描述】:
我已经通过我的网络应用程序上的谷歌帐户设置了一个 React 授权,这在生产中并不能真正工作,但是,在 localhost 上工作。这是来自开发模式的消息(可能会影响):问题是 google 登录模式会立即从屏幕上消失!
It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.
import firebase from 'firebase/app';
import 'firebase/<PACKAGE>';
这里可能有什么错误和解决方案?我使用实时数据库来修改值(实际上可以正常工作)和 google 帐户的身份验证服务。
【问题讨论】:
标签: javascript reactjs firebase webpack google-cloud-firestore