LoginSignup
0
0

More than 1 year has passed since last update.

Firebaseでproduction/staging環境を切り替えた

Posted at

方針

Firebaseのプロジェクトをproduction/staging用でそれぞれ作る。
1つのプロジェクトの中に複数の環境に向けたFirestoreやAuthenticationは作れないため。

やってみる

iOSで使っていたのでこのあたりの記事を参考にやりました。
Firebaseを本番環境と開発環境で切り替えてみた(iOS)

発生した問題

Google, Twitterのログインを入れているのだが、両ログインでエラーが出た。

  • URL Schemesの設定を忘れていた。(Google, Twitterともに必要)
  • Twitter Developerで環境ごとにappを登録するのを忘れていた

As a single exception to these rules, you may create and use a maximum of 3 applications for development, staging, and production instances of the same service. These apps must be registered to a single account, and should be clearly identified (in the name and description) as dev, staging, and prod instances of a single service. You may not use development or staging applications for production purposes.

Twitter Developerでは3環境まで登録することができます。

  • そしてその後Twitter DeveloperでUser authentication settingsをsetするのも忘れていた

解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0