hidjou / classsed-react-firebase-functions

327 stars 180 forks source link

Error: Bucket name not specified or invalid. Specify a valid bucket name via the storageBucket option when initializing the app, or specify the bucket name explicitly when calling the getBucket() method. #12

Open lagupa opened 4 years ago

lagupa commented 4 years ago

Solution, do this ...

const serviceAccount = require('/your/service/account/key/path');
admin.initializeApp({
    credential: admin.credential.cert(serviceAccount),
    storageBucket: "your-storage-bucket-name.appspot.com",
});

see stackoverflow