1
0
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:
2019-09-17 14:30:33 +09:00
parent 6c84493360
commit 85520b2417
2 changed files with 16 additions and 15 deletions

View File

@@ -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": {