1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vue-cli+firebaseをnetlifyでデプロイしたら認証機能が使えなかった

Last updated at Posted at 2019-11-18

netlifyに至る過程

今まではfirebase hostingでデプロイしていたので、自動デプロイという言葉に惹かれ、下記の人達を参考にして、netlifyを使ってみました。↓
https://qiita.com/shozzy/items/dadea4181d6219d2d326
https://qiita.com/tiwu_official/items/5d1e883b3190cd8de56f
 

はまったところ

そしてfirebaseのログイン機能が付いたチュートリアルの写経を試しにnetlifyで自動デプロイしたところなぜかログインできませんでした。ローカルなら普通にログインできるのに・・・。
下記がエラー文です。
スクリーンショット (55).png

解決方法

firebaseAuthenticationで承認付きドメインに登録すると認証が有効になりました!
まぁ、よく考えたら当たり前の話でしたね..
スクリーンショット (56).png

使わせていただいているチュートリアル↓

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?