Skip to content

Commit

Permalink
rerun init
Browse files Browse the repository at this point in the history
  • Loading branch information
wongwh2002 committed Jul 28, 2024
1 parent 8eaa270 commit b90fd0a
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 199 deletions.
10 changes: 7 additions & 3 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"hosting": {
"public": "public",
"site": "foodsaviour",
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
],
"predeploy": ["npm run build"]
},
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
}
}
4 changes: 4 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"indexes": [],
"fieldOverrides": []
}
10 changes: 10 additions & 0 deletions firestore.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
}
}
Loading

0 comments on commit b90fd0a

Please sign in to comment.