-
Notifications
You must be signed in to change notification settings - Fork 1
/
vercel.json
34 lines (34 loc) · 886 Bytes
/
vercel.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
{
"rewrites": [
{
"source": "/",
"has": [
{ "type": "header", "key": "accept", "value": "application/json" }
],
"destination": "/importpw/import?_format=json"
},
{
"source": "/",
"has": [
{ "type": "header", "key": "user-agent", "value": ".*(curl|wget).*" }
],
"destination": "/importpw/import?_format=raw"
},
{ "source": "/", "destination": "/importpw/import?_format=html" },
{
"source": "/(.*)",
"has": [
{ "type": "header", "key": "accept", "value": "application/json" }
],
"destination": "/$1?_format=json"
},
{
"source": "/(.*)",
"has": [
{ "type": "header", "key": "user-agent", "value": ".*(curl|wget).*" }
],
"destination": "/$1?_format=raw"
},
{ "source": "/(.*)", "destination": "/$1?_format=html" }
]
}