Skip to content Skip to sidebar Skip to footer

Change Storagebucket Ref After Initialization

I am trying to build a storage manager app for Firebase Storage in React. The app should be able to list/add/delete buckets and files inside them. I have my initializeApp set up as

Solution 1:

The easiest way is probably to create a new FirebaseApp object initialized to the new bucket, and then get the storage() service from that.

var otherApp = firebase.initializeApp({
  storageBucket: 'otherbucket.appspot.com',
}, second);
var otherStorage = otherApp.storage();

Post a Comment for "Change Storagebucket Ref After Initialization"