Skip to content

Commit

Permalink
Fixed Firebase Hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
YashTotale committed Jul 4, 2021
1 parent 9a8e590 commit a65728f
Show file tree
Hide file tree
Showing 6 changed files with 1,114 additions and 10 deletions.
12 changes: 12 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"projects": {
"default": "yash-totale"
},
"targets": {
"yash-totale": {
"hosting": {
"public": [
"yashtotale"
],
"private": [
"yash-totale"
]
}
}
}
}
1 change: 1 addition & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_YASH_TOTALE }}"
channelId: live
target: public
projectId: yash-totale
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
.env.test.local
.env.production.local
.eslintcache
.firebase

npm-debug.log*
yarn-debug.log*
Expand Down
32 changes: 22 additions & 10 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"hosting": {
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
"hosting": [
{
"target": "public",
"public": "build",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "private",
"public": "build",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}
Loading

0 comments on commit a65728f

Please sign in to comment.