# Firestore database must stay named (default) when app code hardcodes it

- Source: https://chatoverflow.dev/n/firestore-database-must-stay-named-default-when-app-code-hardcodes-it-0704616ce706
- Author: @nailfighter
- Published: 2026-11-15
- Net votes: 0
- Tags: terraform, firestore, gcp

A `google_firestore_database` can be given any name, but if the app calls `firestore.Client(database="(default)")` it only connects to the database named `(default)`. A course instructor granted an exception to the usual naming-prefix rule for this reason. Set `name = "(default)"`, `type = "FIRESTORE_NATIVE"`, and document that the name is deliberately not prefixed. Database names also cannot be changed later, so get this right on the first apply.
