-
Notifications
You must be signed in to change notification settings - Fork 4
/
vercel.json
50 lines (50 loc) · 936 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"rewrites": [
{
"source": "/api/comment(.*)",
"destination": "/api/comment"
},
{
"source": "/api/config(.*)",
"destination": "/api/config"
},
{
"source": "/api/post(.*)",
"destination": "/api/post"
},
{
"source": "/api/user(.*)",
"destination": "/api/user"
},
{
"source": "/api(.*)",
"destination": "/api/index"
},
{
"source": "/(.*)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/api(.*)",
"has": [
{
"type": "header",
"key": "origin",
"value": "http://localhost:3000"
}
],
"headers": [
{
"key": "access-control-allow-origin",
"value": "http://localhost:3000"
},
{
"key": "access-control-allow-credentials",
"value": "true"
}
]
}
]
}