nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
642 stars 98 forks source link

[Feature Request] Multiple Storage Bucket Support #261

Closed lechim closed 3 years ago

lechim commented 4 years ago

Is there a possibility to use multiple storage buckets with this module? I tried to use this module but had to make a workaround for the time being by using firebase directly.

Cannot find a way to pass in the bucket name as they describe in the firebase docs.

lupas commented 4 years ago

Hi @lechim

Thanks for the issue.

At this point you cannot do that with this module, since we only initialise Firebase Storage once. We might be able to implement this more easily after finishing up https://github.com/nuxt-community/firebase-module/pull/258.

I'll keep this in our backlog.

Docs for future reference: https://firebase.google.com/docs/storage/web/start#use_multiple_storage_buckets

suryaiiit commented 4 years ago

Cant we do something like this until the support is officially available ?

this.$fireStorage.bucket_.bucket = 'NEW_BUCKET'

lupas commented 3 years ago

As seen in https://github.com/nuxt-community/firebase-module/pull/334, it seems to currently work with this.$fireModule.app().storage('gs://my-custom-bucket').

I'll keep this issue open to look into supporting this as a built-in feature.

lupas commented 3 years ago

Closing due to inactivity and upcoming v9 refactoring.