Uncaught (in promise) FirebaseError: Firebase: Error (auth/api-key-not-valid.-please-pass-a-valid-api-key.) (Netlify)

Viewed 32

The problem is about netlify deployment.

I am pretty sure all api key value in firebase - config works perfectly, and it works so far so good in local development environment.

The problem shows up after deployment to netlify. What may go wrong and how I could fix it?

1 Answers

I am not sure how's the problem incurred. Yet, I took recommendation from netlify forum to store my env variable in its build > environment variable section. The problem is resolved.

Thank you all for your attention!

Related