I'm trying to make first deploy to firebase from NodeJS project and I haven't set up realtime database because I'm planning on using Firestore only.
However when I run firebase deploy
from project terminal it throws me this error - It looks like you haven't created a Realtime Database instance in this project before. Please run firebase init database to create your default Realtime Database instance.
Can I avoid creating Realtime database and still being able to deploy?
Firebase configs used(obviously I ran yarn build
beforehand):
const firebaseConfig = {
apiKey: "[API_KEY]",
authDomain: "[AUTH_DOMAIN]",
projectId: "[PROJECT_ID]",
messagingSenderId: "[SENDER_ID]",
appId: "[APP_ID]",
};
If anyone else makes this rookie mistake - be careful not to mistake "database" configuration in firebase.json with "firestore". The "database" configures Realtime Database instead of Firestore