Skip to content

Commit

Permalink
Add firebase and prepare for initial deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rickkln committed Apr 21, 2020
1 parent 994597d commit 09f6f88
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
53 changes: 53 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"hosting": {
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
}
]
},
{
"source": "static/**",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "**/*.@(css|js)",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "sw.js",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
}
]
},
{
"source": "page-data/**",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
}
]
}
]
}
}
2 changes: 1 addition & 1 deletion src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const AboutPage = () => (
<Layout>
<SEO title="About" />
<p>
About
This is another Covid19 tracking website, because there aren&apos;t enough of those already.
</p>
</Layout>
);
Expand Down

0 comments on commit 09f6f88

Please sign in to comment.