I use const bucket = admin.storage().bucket(); in the cloud function, and at the very top, I have:
const functions = require('firebase-functions')
const admin = require("firebase-admin");
admin.initializeApp();
When I try to deploy, it gives me an error:
i functions: Loaded environment variables from. Error: Missing bucket name. If you are unit testing, please provide a bucket name through functions.storage.bucket(bucketName), or set process.env.FIREBASE_CONFIG.`
This only started happening after I updated, I believe. Thank you for your help.
Google released new firebase-tools with a bug, just fixed the bug at v9.16.3 https://github.com/firebase/firebase-tools/releases/tag/v9.16.3
Release note
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With