Similar concern "Firebase Project Initialization Error: Cloud resource location is not set for this project".
This might help you:
- Go to the Firebase console and open your project
- Go to the Storage tab ( Side panel on left )
- Click setup storage
- Run Firebase init again
You may use the REST API
to create a script to initialize your project.
REST API sample curl:
curl --request POST \
'https://firebase.googleapis.com/v1beta1/projects/<"PROJECT-ID">/defaultLocation:finalize' \
--header 'Authorization: Bearer '$(gcloud auth application-default print-access-token) \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"locationId":<"REGION-NAME">}' \
--compressed
Check these documentation for reference:
Note: After the default GCP resource location is finalized, or if it was already set, it cannot be changed.
Unfortunately, Firebase CLI
and Gcloud tools
have not yet been implemented to set the Cloud resource location. However you can file a Feature Requests that you might think is helpful.