forked from PaulKinlan/paul.kinlan.me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
20 lines (20 loc) · 775 Bytes
/
now.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"version": 2,
"name": "paul.kinlan.me",
"alias": ["paul.kinlan.me"],
"builds": [
{
"src": "build.sh",
"use": "@now/static-build"
}
],
"routes": [
{"src": "^/amp/(.*)/", "status": 301, "headers": { "Location": "/$1/" } },
{"src": "/([^\\.]*[^/])$", "status": 301, "headers": { "Location": "/$1/" } },
{"src": "^/(.*?)/$", "dest": "/$1/index.html" },
{"src": "\\.mjs$", "headers": {"Content-Type": "text/javascript" ,"Cache-Control": "public,max-age=7200"} },
{"src": "\\.(jpg|jpeg|gif|png)$", "headers": {"Cache-Control": "public,max-age=7200"} },
{"src": "\\.(js|json)$", "headers": {"Cache-Control": "max-age=7200"} },
{"src": "\\.html$", "headers": {"Cache-Control": "public,max-age=0,must-revalidate"} }
]
}