forked from mitchmac/ServerlessWP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel.json
More file actions
34 lines (34 loc) · 656 Bytes
/
vercel.json
File metadata and controls
34 lines (34 loc) · 656 Bytes
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
{
"rewrites": [
{
"source": "/(.+)\\.(css|js|svg|png|gif|jpg|jpeg|webp|woff|woff2|ico|otf)",
"destination": "/wp/$1.$2"
},
{
"source": "/(.*)",
"destination": "/api/index.js"
}
],
"headers": [
{
"source": "/(.+)\\.(css|js|svg|png|gif|jpg|jpeg|webp|woff|woff2|ico|otf)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=864000, s-maxage=864000"
}
]
}
],
"functions": {
"api/index.js": {
"includeFiles": "wp/**",
"maxDuration": 60
}
},
"build": {
"env": {
"NODEJS_AWS_HANDLER_NAME": "handler"
}
}
}