From 2e97d0c803a10f6741f4a7f70ff357a6d3e500d0 Mon Sep 17 00:00:00 2001 From: Rei Date: Wed, 27 Dec 2023 12:29:11 +0000 Subject: [PATCH] Deploy to new Firestore Database --- .firebase/hosting.YnVpbGQ.cache | 14 ++++++++++++++ .firebaserc | 5 +++++ firebase.json | 20 ++++++++++++++++++++ firestore.indexes.json | 4 ++++ firestore.rules | 19 +++++++++++++++++++ public/index.html | 2 +- src/config/Config.js | 12 ++++++------ 7 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 .firebase/hosting.YnVpbGQ.cache create mode 100644 .firebaserc create mode 100644 firebase.json create mode 100644 firestore.indexes.json create mode 100644 firestore.rules diff --git a/.firebase/hosting.YnVpbGQ.cache b/.firebase/hosting.YnVpbGQ.cache new file mode 100644 index 0000000..e85289a --- /dev/null +++ b/.firebase/hosting.YnVpbGQ.cache @@ -0,0 +1,14 @@ +asset-manifest.json,1703679305360,22ff8f6461cda5844ec8a82bb7bc9ff2c055d8fbc25156a77edd9031e5868b21 +index.html,1703679305360,3d3b18dab96628c021ed1fe983bc47bc3875e264b9a568a631480c3a59d20105 +static/js/787.a6d1ab23.chunk.js,1703679305380,33afc04de61c04377ef966764aaf21b1bba6bbfc1300d67bef6ecc8d85355277 +static/js/787.a6d1ab23.chunk.js.map,1703679305380,788da43aa9c45554445315f92cd26ae1936200ab5f1f9000bb14b9153505aa1a +static/js/main.ca588c7a.js.LICENSE.txt,1703679305376,64f315b68253621057cfb73e72a5e63921d483c76ab0b67042ffe0c1294b2cd1 +favicon.ico,1703679286732,fc26b72d1f6d47474d8993a667b2af803ede41c9996d0f69e62ed6e415d7fed0 +logo192.png,1703679286732,50bd60c6fefdd7de57fb652cf717e33c712106ffe0a32da5f75a12bf22cecbc0 +robots.txt,1703679286736,2544ca049f223a42bff01f72ad930a5edba75bbb7199d0f8430a02ff5aca16ec +manifest.json,1703679286732,c12dd51ed2c8ac94acf3c25d1f0c541d667c90c8557ac43cb42d0a6df086bd7f +logo512.png,1703679286732,9ab6cb941e493973baf9755bd3fc76988762e6b514d5bc365aeaccefa0de034f +static/css/main.62d3213f.css,1703679305376,af23472e44deb35bdfeb0b7390ce8efd2acc86442b9d839559906304abfd475b +static/js/main.ca588c7a.js,1703679305376,f76a7fda1765e5c0afd66e714347cc20b84e88b71c9ddec344241a2a1cd72842 +static/css/main.62d3213f.css.map,1703679305376,6e4c33d98b511b92556a7c828f4711cc1456bbcd65f87796e58b2b47a51a30d2 +static/js/main.ca588c7a.js.map,1703679305380,6ad75b928732d9c8fed52d271224b08e9992360fb5c5ce3e69b11a12f3bc4e3f diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..5b46bea --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "ray-ray-s-word-bingo" + } +} 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..c79e5eb --- /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, 26); + } + } +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index f9807ba..ccfae07 100644 --- a/public/index.html +++ b/public/index.html @@ -24,7 +24,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - Ray Ray's Bingo + Ray Ray's Word Bingo diff --git a/src/config/Config.js b/src/config/Config.js index 8c3fe4d..07c24e8 100644 --- a/src/config/Config.js +++ b/src/config/Config.js @@ -1,8 +1,8 @@ export const firebaseConfig = { - apiKey: "AIzaSyDOqy82gGzhHpJhl7wJ59RZqEXgSs4PLqA", - authDomain: "rayraysbingo.firebaseapp.com", - projectId: "rayraysbingo", - storageBucket: "rayraysbingo.appspot.com", - messagingSenderId: "201595566813", - appId: "1:201595566813:web:38d77605d5b0c43253b934" + apiKey: "AIzaSyAz4-TLqma6EBhQBDaacJZCJ5W6KRygzk8", + authDomain: "ray-ray-s-word-bingo.firebaseapp.com", + projectId: "ray-ray-s-word-bingo", + storageBucket: "ray-ray-s-word-bingo.appspot.com", + messagingSenderId: "1065410299147", + appId: "1:1065410299147:web:f1b066864faa0298bf0e0e" }; \ No newline at end of file