Skip to content

Commit bcd064f

Browse files
authored
Update FIRESTORE-NATIVE.md
1 parent 2acc9ac commit bcd064f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

FIRESTORE-NATIVE.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@ This section covers connecting to a Firestore instance.
1414

1515
1. **Verify Environment Variables**: Before attempting to connect, confirm with the user that the following environment variables are set in the extension configuration or their shell environment.
1616

17-
* `FIRESTORE_PROJECT`: The GCP project ID.
18-
* `FIRESTORE_DATABASE`: The Firestore database ID.
17+
* `FIRESTORE_PROJECT`: The GCP project ID.
18+
* `FIRESTORE_DATABASE`: The Firestore database ID.
1919

20-
If you need to update any of these values later, use the `gemini extensions config firestore-native` command.
20+
2. **Handle Missing Variables**: If a command fails with an error message containing a placeholder like `${FIRESTORE_PROJECT}`, it signifies a missing environment variable. Inform the user which variable is missing and instruct them to set it.
2121

22-
2. **Handle Missing Variables**: If a command fails with an error message containing a placeholder like `${FIRESTORE_PROJECT}`, it signifies a missing environment variable. Inform the user which variable is missing and instruct them to set it.
23-
24-
3. **Handle Permission Errors**: If you encounter permission errors, ensure the user has the correct Firestore permissions (e.g., `datastore.entities.list`, `datastore.entities.create`). The user likely lacks the role Cloud Datastore User (`roles/datastore.user`). You can provide these links for assistance:
25-
* Granting Roles: https://cloud.google.com/iam/docs/grant-role-console
26-
* Firestore Permissions: https://cloud.google.com/iam/docs/roles-permissions/firestore
22+
3. **Handle Permission Errors**: If you encounter permission errors, ensure the user has the correct Firestore permissions (e.g., `datastore.entities.list`, `datastore.entities.create`). The user likely lacks the roles Cloud Datastore User (`roles/datastore.user`) and Firebase Rules Viewer (`roles/firebaserules.viewer`). You can provide these links for assistance:
23+
* Granting Roles: https://cloud.google.com/iam/docs/grant-role-console
24+
* Firestore Permissions: https://cloud.google.com/iam/docs/roles-permissions/firestore
2725

2826
---
2927

0 commit comments

Comments
 (0)