#funk101-api-key
1 messages · Page 1 of 1 (latest)
That's an interesting error. When you log out the API key, does it show the correct API key? Somewhere in the process it's getting prepended by something that's not supposed to be there
FYI: I get this as a warning sometimes when building Firebase Cloud Functions - it's because the system builds the code locally before deploying, but doesn't include the environment variables and/or secrets I use to store the value
Works when it actually runs, tho
It's possible to work around it by checking for said availability, and sub'ing in a "fake" version just to get past the warning
(Firebase "builds" the instance before deploying, and the call to the Stripe initialization is initially "top-level". When instance is actually called, the environment variables/secrets are available, and it initializes fine)
hmm, I'll dig in and see