From 48fd8b7e899dfa6a64a6ecd68323a56e1ff0aeb1 Mon Sep 17 00:00:00 2001 From: Rei Date: Wed, 27 Dec 2023 13:12:24 +0000 Subject: [PATCH] Add to correct Firebase Project --- .firebaserc | 5 +++++ firebase.json | 20 ++++++++++++++++++++ firestore.indexes.json | 4 ++++ firestore.rules | 19 +++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 .firebaserc create mode 100644 firebase.json create mode 100644 firestore.indexes.json create mode 100644 firestore.rules diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..fd2c619 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "rayrayswordbingo" + } +} diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..380789b --- /dev/null +++ b/firebase.json @@ -0,0 +1,20 @@ +{ + "firestore": { + "rules": "firestore.rules", + "indexes": "firestore.indexes.json" + }, + "hosting": { + "public": "build", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/firestore.indexes.json b/firestore.indexes.json new file mode 100644 index 0000000..415027e --- /dev/null +++ b/firestore.indexes.json @@ -0,0 +1,4 @@ +{ + "indexes": [], + "fieldOverrides": [] +} diff --git a/firestore.rules b/firestore.rules new file mode 100644 index 0000000..7e50747 --- /dev/null +++ b/firestore.rules @@ -0,0 +1,19 @@ +rules_version = '2'; + +service cloud.firestore { + match /databases/{database}/documents { + + // This rule allows anyone with your Firestore database reference to view, edit, + // and delete all data in your Firestore database. It is useful for getting + // started, but it is configured to expire after 30 days because it + // leaves your app open to attackers. At that time, all client + // requests to your Firestore database will be denied. + // + // Make sure to write security rules for your app before that time, or else + // all client requests to your Firestore database will be denied until you Update + // your rules + match /{document=**} { + allow read, write: if request.time < timestamp.date(2024, 1, 27); + } + } +} \ No newline at end of file