79487442

Date: 2025-03-05 19:05:01
Score: 1.5
Natty:
Report link

Found the solution.. I missed an important install and the errors weren't making it very clear what I was missing.

I had to run the following command: curl -sL https://firebase.tools | bash

After this I could run the command from above answers, but I had to provide the project too:

firebase apphosting:secrets:grantaccess NEXT_PUBLIC_FIREBASE_API_KEY --backend xx --project xx

With --backend xx being the apphosting backend like @Alex Kempton was stating.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Alex
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: rafbanaan