-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnow.json
37 lines (37 loc) · 806 Bytes
/
now.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"version": 2,
"builds": [
{
"src": "next.config.js",
"use": "@now/next"
}
],
"routes": [
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"cache-control": "public, max-age=43200, immutable",
"Service-Worker-Allowed": "/"
}
},
{
"src": "/api/(.*)",
"dest": "/app/routes/api"
},
{
"src": "/page/(?<name>[^/]+)$",
"dest": "/www/page?name=$name"
},
{
"src": "/(.*\\.(js|jpg|json|css|ico|png)$)",
"dest": "/www/$1",
"headers": { "cache-control": "public,max-age=31536000,immutable" }
},
{
"src": "/(.*)",
"dest": "/www/$1",
"headers": { "cache-control": "public, max-age=0, must-revalidate" }
}
]
}