Skip to content

Commit

Permalink
add firebase for hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
wylie39 committed Mar 5, 2021
1 parent a6332f9 commit 8950372
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

.firebase
/firebase/public
.idea/
.vscode/
node_modules/
Expand Down
5 changes: 5 additions & 0 deletions firebase/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "notadog-a52af"
}
}
12 changes: 12 additions & 0 deletions firebase/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "react-scripts build && rm -fr ./firebase/public && mv build ./firebase/public",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
Expand Down

0 comments on commit 8950372

Please sign in to comment.