Reputation: 181
When I try to use an environment variable in Vercel to authenticate with Cloud Firestore, I get "OSError: [Errno 36] File name too long".
My code:
json_key_str = os.environ.get("GOOGLE_APPLICATION_CREDENTIALS")
json_data = json.loads(json_key_str)
cred = credentials.Certificate(json_data)
firebase_admin.initialize_app(cred)
db = firestore.client()
Upvotes: 0
Views: 19