Replies: 5 comments 15 replies
-
We expect Is your Related: #49 |
Beta Was this translation helpful? Give feedback.
-
I think I solved the issue for now. The reason was that when there was a server error somehow on the client side it was giving this error. I excluded some code in webpack bundle. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
In case anyone else gets here and happens to have done the same silly thing I did... I hit this error because I tried to set the fallback value for these environment variables as a string. I was doing this:
when I should have been doing this:
I don't really know why I tried to set it as a string. Maybe I thought it would be easy to catch errors based on missing values. The problem, however, is that The |
Beta Was this translation helpful? Give feedback.
-
Hey guys, I ran into this issue when I had prefixed my FIREBASE_PRIVATE_KEY with NEXT_PUBLIC_. Doing so makes the var available to the client. I was (/am) new to Next.js, so found this NFA error to be quite for helpful for understanding how development env_vars work in Next 👍 |
Beta Was this translation helpful? Give feedback.
-
I'm actually getting this error also when trying to init. I'm initializing firebase auth in
Obviously the private key will be returned as |
Beta Was this translation helpful? Give feedback.
-
Hi,
In my project I created all files same as the example project. However, I am getting "Error: Invalid next-firebase-auth options: The "firebaseAdminInitConfig" private key setting should not be available on the client side. The "cookies.keys" setting should not be available on the client side."
I suppose webpack is adding initConfig to client bundle. Is there a way to prevent this?
Beta Was this translation helpful? Give feedback.
All reactions