Skip to content

Commit

Permalink
Try fixing page deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Gojodzojo committed May 30, 2022
1 parent 365180c commit 4c58973
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 56 deletions.
9 changes: 0 additions & 9 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"projects": {
"default": "watering-reminder"
},
"targets": {
"watering-reminder": {
"hosting": {
"watering-reminder": [
"watering-reminder"
]
}
}
}
}
84 changes: 37 additions & 47 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,43 @@
],
"source": "functions"
},
"hosting": [
{
"public": "dist/watering-reminder",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
"hosting": {
"public": "dist/watering-reminder",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
"emulators": {
"auth": {
"host": "127.0.0.1",
"port": 9099
},
"functions": {
"host": "127.0.0.1",
"port": 5001
},
"firestore": {
"host": "127.0.0.1",
"port": 8080
},
"hosting": {
"host": "127.0.0.1",
"port": 5000
},
"pubsub": {
"host": "127.0.0.1",
"port": 8085
},
{
"target": "watering-reminder",
"public": "dist/watering-reminder",
"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"
}
]
"ui": {
"enabled": true
}
]
}
}

0 comments on commit 4c58973

Please sign in to comment.