mirror of
https://github.com/uetchy/namae.git
synced 2025-09-10 10:06:39 +09:00
feat: improve cache
This commit is contained in:
7
now.json
7
now.json
@@ -6,11 +6,11 @@
|
||||
{
|
||||
"src": "/web/package.json",
|
||||
"use": "@now/static-build",
|
||||
"config": { "distDir": "build" }
|
||||
"config": {"distDir": "build"}
|
||||
},
|
||||
{
|
||||
"src": "/api/services/*.ts",
|
||||
"use": "@now/node@canary"
|
||||
"use": "@now/node"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
@@ -20,7 +20,8 @@
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/web/$1"
|
||||
"dest": "/web/$1",
|
||||
"headers": {"cache-control": "s-maxage=86400"}
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
|
Reference in New Issue
Block a user