perf!: hosting on firebase as static files

BREAKING CHANGE: not-found page is now Next.js default
This commit is contained in:
rusconn
2023-06-17 14:42:07 +09:00
parent 4d198c5b96
commit b9bedd13ef
7 changed files with 48 additions and 2 deletions

37
firebase.json Normal file
View File

@@ -0,0 +1,37 @@
{
"hosting": {
"public": "out",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
}
]
},
{
"source": "favicon.ico",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=3600, must-revalidate"
}
]
},
{
"source": "_next/static/**",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
],
"cleanUrls": true,
"trailingSlash": false
}
}