最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

firebase - Where is the Firestore databaseURL? - Stack Overflow

programmeradmin4浏览0评论

I have set up a little Firebase project with a Firestore database.

And I am facing a problem. The databaseURL does not seem to appear anywhere. I do not remember having the same issue when using the Realtime database.

I have looked in all the config files I could locate and also checked on the net where other people seem to have had the same issue. But at this point I am still without a databaseURL.

An since my DB is not located in us-central1 (DB location: eur3) the pattern below does not work.

https://[project-id].firebaseio

Where is the Firestore databaseURL ?

I have set up a little Firebase project with a Firestore database.

And I am facing a problem. The databaseURL does not seem to appear anywhere. I do not remember having the same issue when using the Realtime database.

I have looked in all the config files I could locate and also checked on the net where other people seem to have had the same issue. But at this point I am still without a databaseURL.

An since my DB is not located in us-central1 (DB location: eur3) the pattern below does not work.

https://[project-id].firebaseio

Where is the Firestore databaseURL ?

Share Improve this question asked Feb 14 at 5:26 MichelMichel 11.7k20 gold badges101 silver badges216 bronze badges 2
  • 3 Firestore databases don't need a URL for configuration. You normally just take the default database for your project, and the Firebase SDK knows how to do that. Please edit the question to explain what you need with a database URL in order to use Firestore, including code that doesn't work the way you expect, because you likely have a misunderstanding. – Doug Stevenson Commented Feb 14 at 12:13
  • Answered below on how the connection to a specific Firestore database is determined. If that's not enough, it sounds like a XY problem so please update your question to show the actual problem you're dealing with (as the presence or absence of a databaseURL value should be irrelevant unless it's causing some other problem for you). – Frank van Puffelen Commented Feb 14 at 15:55
Add a comment  | 

2 Answers 2

Reset to default 2

I think there is no URL for Firestore database unlike Realtime database.

The urls with .firebaseio are only for Realtime databases.

As others have said: Firestore databases are not identified by a databaseURL, but by a combination of project ID and an (optional) database name within that project (which defaults to (default)).

发布评论

评论列表(0)

  1. 暂无评论