mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 04:45:22 -04:00
firebase hosting config
This commit is contained in:
parent
0782000454
commit
0b56eda8e0
5
.firebaserc
Normal file
5
.firebaserc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"projects": {
|
||||
"default": "jakejarvis-com"
|
||||
}
|
||||
}
|
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
.vscode/
|
||||
.npm
|
||||
node_modules
|
||||
lib
|
||||
firebase-debug.log
|
||||
npm-debug.log
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
.npmrc
|
||||
|
||||
.DS_Store
|
57
firebase.json
Normal file
57
firebase.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"hosting": {
|
||||
"public": "public",
|
||||
"rewrites": [ {
|
||||
"source": "**",
|
||||
"destination": "/index.html"
|
||||
}],
|
||||
"headers": [
|
||||
{
|
||||
"source": "**/*",
|
||||
"headers": [{
|
||||
"key": "X-Content-Type-Options",
|
||||
"value": "nosniff"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"source" : "**/",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "max-age=180"
|
||||
},
|
||||
{
|
||||
"key": "X-Content-Type-Options",
|
||||
"value": "nosniff"
|
||||
},
|
||||
{
|
||||
"key": "X-Frame-Options",
|
||||
"value": "DENY"
|
||||
},
|
||||
{
|
||||
"key": "X-UA-Compatible",
|
||||
"value": "ie=edge"
|
||||
},
|
||||
{
|
||||
"key": "X-XSS-Protection",
|
||||
"value": "1; mode=block"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"source" : "**/*.@(jpg|jpeg|gif|png|ico)",
|
||||
"headers" : [{
|
||||
"key" : "Cache-Control",
|
||||
"value" : "max-age=604800"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"source" : "**/*.@(css|js)",
|
||||
"headers" : [{
|
||||
"key" : "Cache-Control",
|
||||
"value" : "max-age=86400"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user