更改默认的Firebase存储桶? [英] Change the default firebase storage bucket?

查看:65
本文介绍了更改默认的Firebase存储桶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google云存储中有1个存储分区.Firebase创建一个新存储桶,它是Firebase控制台中的默认值.我想更改默认存储桶并删除firebase创建的存储桶.以及如何在Google云存储中找到我的存储桶的配置设置.

这是默认存储桶:

  var config = {apiKey:"xx",authDomain:"xx.firebaseapp.com",databaseURL:"https://xx.firebaseio.com",projectId:"xx",storageBucket:"xx",essagingSenderId:"xx"};firebase.initializeApp(config); 

解决方案

如果转到

复制要使用的存储桶的名称,并将其放在配置的 storageBucket 属性中.

I have 1 storage buckets in Google cloud storage. Firebase create a new bucket and it is default in firebase console. I want to change the default bucket and delete the bucket created by firebase. And how can I find for config settings for my bucket in google cloud storage.

This is for default bucket :

   var config = {
                apiKey: "xx",
                authDomain: "xx.firebaseapp.com",
                databaseURL: "https://xx.firebaseio.com",
                projectId: "xx",
                storageBucket: "xx",
                messagingSenderId: "xx"
            };
            firebase.initializeApp(config);

解决方案

If you go to your Storage browser in the Cloud console, you will see a list of the storage buckets for your project.

Copy the name of the bucket you want to use and put it in the storageBucket property of the configuration.

这篇关于更改默认的Firebase存储桶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆