forked from talmobi/v2-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnow.json
31 lines (31 loc) · 757 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
{
"name": "monorepo",
"version": 2,
"builds": [
{ "src": "www/package.json", "use": "@now/next" },
{ "src": "api/go/*.go", "use": "@now/go" },
{ "src": "api/python/*.py", "use": "@now/python" },
{ "src": "api/php/*.php", "use": "@now/php" },
{ "src": "api/node/*.js", "use": "@now/node" }
],
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/$1"
},
{
"src": "/redirect-test",
"status": 302,
"headers": {
"location": "https://google.com"
}
},
{
"src": "/(.*)",
"dest": "/www/$1",
"headers": {
"x-request-path": "$1"
}
}
]
}