forked from alibaba/hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnow.json
48 lines (48 loc) · 813 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
38
39
40
41
42
43
44
45
46
47
48
{
"name": "hooks",
"scope": "umijs",
"builds": [
{
"src": "now-build.sh",
"use": "@now/static-build",
"config": {
"distDir": ".doc"
}
}
],
"routes": [
{
"src": "/zh-cn/static/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "/zh-cn/static/$1"
},
{
"src": "/zh-cn/assets.json",
"dest": "/zh-cn/assets.json"
},
{
"src": "/zh-cn(/(.*))?",
"dest": "/zh-cn"
},
{
"src": "/static/(.*)",
"headers": {
"cache-control": "s-maxage=604800"
},
"dest": "/static/$1"
},
{
"src": "/assets.json",
"dest": "/assets.json"
},
{
"src": "/(.*)",
"dest": "/"
}
],
"github": {
"autoAlias": false
}
}