Skip to content

Commit

Permalink
feat(firebase) init firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorciney committed Aug 1, 2022
1 parent 1a64f4f commit c78f9aa
Show file tree
Hide file tree
Showing 9 changed files with 1,339 additions and 188 deletions.
14 changes: 14 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"targets": {
"todo-dy": {
"hosting": {
"todo-dy": [
"todo-dy"
]
}
}
},
"projects": {
"default": "todo-dy"
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ testem.log
# System Files
.DS_Store
Thumbs.db

# Firebase
.firebase
*-debug.log
.runtimeconfig.json
12 changes: 11 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,19 @@
],
"scripts": []
}
},
"deploy": {
"builder": "@angular/fire:deploy",
"options": {
"prerender": false,
"ssr": false,
"browserTarget": "todo-dy:build:production",
"firebaseProject": "todo-dy",
"firebaseHostingSite": "todo-dy"
}
}
}
}
},
"defaultProject": "todo-dy"
}
}
35 changes: 35 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"hosting": {
"target": "todo-dy",
"public": "docs",
"ignore": [
"**/.*"
],
"headers": [
{
"source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)",
"headers": [
{
"key": "Cache-Control",
"value": "public,max-age=31536000,immutable"
}
]
},
{
"source": "/@(ngsw-worker.js|ngsw.json)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit c78f9aa

Please sign in to comment.