Firebase - Changing my project's Country/region - firebase

I've mistakenly chosen the wrong Country/region during the creation of a project in firebase.
As you can see here:
Can this be fixed?
(I know the project Id cannot be changed and I like the Id I've chosen...)

As the docs say, in bold no less:
Once you select a location for your project, you cannot change it.
You can however change the location for certain services (e.g. Cloud Functions and Cloud Storage) when setting them up.

Related

Hosting in Firebase without the hyphen and project id

It is probably an easy question but I am not able to figure it out. I have a project that I have configured in Firestore to have a domain like "loremipsum.web.app". However, when I do the firebase init and then firebase deploy, it is hosted in "loremipsum-9dd7.web.app" which is the project id. I would like to have it without the hyphen and that id number. How can I do it?
Here’s a screenshot of the hosting section of my project. The first one is the one I want to host in and the second one is where it is hosting.
That is something you can't do. The reason there are those numbers is that someone else already is using that app name loremipsum for his project. When you have choosen your Firebase project name you had the same and Firebase added those numbers to make your project name unique.
Just to make it clear. Even if your name is as you tiped it the "real" project name will be the one with the numbers as you can see on this example:
I can see in most places the name I tiped in but Firebase will use the one with the numbers for hosting.
So if you would use the domain without the numbers you would land on his project and not yours.
To have a nice domain just connect a custom one to your Firebase project. You can read more about it here.
It looks like you manually added a second site to your project. You should check this documentation on how to handle such situations. You need to change your firebase configuration and defined on witch target to deploy your site.

Firebase dynamic links on customdomain rewrite in hosting but how

I've setup a custom domain to use for firebase Dynamic Links. Hosting has been setup in Firebase Console and I tried to use dynamic links without the customdomain, but just a xxx.page.link.
Now I want to return to use the custom domain, but from the console I'm told that:
A configuration already exists for this site. Add the snippet below to your firebase.json file and redeploy your changes. Be sure the rewrite rule is the first match for your dynamic link.
I'm not exactly sure how to handle this. Should I use the CLI and init a project to make this change or can I somehow do this from the portal itself.
If I need to use the CLI, how do I then access the existing project and make the change?
It seems you're already using Firebase Hosting outside of just for Dynamic Links. In that case you'll need to configure it through the CLI.
The configuration for Firebase Hosting must be made through deploying the firebase.json file through the Firebase CLI. There's no way to configure this directly in the Firebase console.
You can create an empty directory, run firebase init in there, and configure it to your existing project. Once that is done, you can create and deploy the minimal firebase.json file required as shown in the documentation on setting up your custom domain.

Delete Firestore database from project

I have a firebase project and I added a Firestore database but I forgot to choose the right location. Since the location can not be modified after creating the database and the database is empty I would like to just delete it and create a new one with the correct location. Is this possible or do I need to create the whole project again?
Would appreciate help a lot.
Once a region is set for a project, it can't be changed. In the documentation it says:
Warning: Setting the location for one of the following services [Firestore, Storage, App Engine] also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.
So, you will have to create a whole new project.

Change firebase deploy directory

Is there any way that I could change the directory for firebase deploy?
I want to change the 'notificationtest...' into another firebase directory name:
I hope I am giving a clear question here though because I don't know how to explain it in proper words.
That notificationtest-59f94 is your project ID, which you can't change after your project was created. If you want to deploy to a different URL, you will have to create another project.
Note that the console adds a suffix ("59f94" in your case) to new projects if another project already exists with the name you picked. So you will have to pick a unique name to prevent getting such a suffix.
And last I checked the project name had to have a - in it. So if you don' specify one yourself, the console will also add a suffix. Note though that these rules occasionally change, so be sure to check what the console says your project ID will become.

Is it possible to rename firebase database name?

We had created the multiple databases. Now, we need to rename the database that is used for testing purpose. So, Is it possible to rename check-12cc0-test database? Please check out the image below.
You can change your project name from here
I have it in Spanish, but at the right of project overview, project configuration you should see the pencil to edit your project name.
Note you can't change your database name since it's the ID of the project, you will need to create a new one and delete the one you have to change the database name. You can only change your children and keys inside your database main tree node.
Since the id of the project can't change, this is what Firebase tells to us about it:
ID of the project
It is the unique identifier of your Firebase project. You can find it in the project URL: https://console.firebase.google.com/project/<projectId>
Remember that for edit the nodes and keys you can't do it directly from Firebase, instead you should export your JSON Database and edit it, then reupload it, or do it programmatically.

Resources