.secret.localFailed to load environment variables from .env.

86 views
Skip to first unread message

Rack

unread,
Feb 20, 2024, 11:52:47 PM2/20/24
to Firebase Google Group
.secret.localFailed to load environment variables from .env. in firebase functions Screenshot (397).png

Arthur Thompson

unread,
Feb 21, 2024, 1:34:41 PM2/21/24
to fireba...@googlegroups.com
Hi Rack,

IIUC you have a value in your .secret.local file but it is not being recognized in your function. I have found that if I repeat the .secret.local variable in my .env file with no value then the secret is recognized by my function eg:

.secret.local
SECRET_KEY=SECRET_VALUE

.env
SECRET_KEY=

On Tue, Feb 20, 2024 at 8:52 PM Rack <yassi...@gmail.com> wrote:
.secret.localFailed to load environment variables from .env. in firebase functions Screenshot (397).png

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5b66a96c-04b9-406a-aa6e-a98cc2645737n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages