forked from rubynor/bigfive-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vercel.json
62 lines (62 loc) · 1.4 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
{
"version": 2,
"scope": "kbenaroche-neobridgefr",
"alias": ["bigfive.neobridge.com"],
"env": {
"MONGODB_URI": "mongodb+srv://vercel-admin-user:[email protected]/tests",
"MONGODB_COLLECTION": "results",
"BASE_URL": "https://bigfive.neobridge.com"
},
"builds": [
{
"src": "nuxt.config.js",
"use": "@nuxtjs/vercel-builder",
"config": {
"serverFiles": [
"content/**"
]
}
},
{
"src": "api/*.js",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "/api/result/:id/:lang",
"destination": "/api/result.js"
},
{
"source": "/api/result/:id",
"destination": "/api/result.js"
},
{
"source": "/api/compare/:id",
"destination": "/api/compare.js"
},
{
"source": "/api/(.*)",
"destination": "/api/$1.js"
},
{
"source": "/service-worker.js",
"destination": "/sw.js"
}
],
"headers": [
{
"source": "/api/(.*)",
"headers" : [
{
"key" : "Access-Control-Allow-Origin",
"value" : "*"
},
{
"key": "Access-Control-Allow-Headers",
"value": "Accept, Access-Control-Request-Headers, Access-Control-Request-Method, Authorization, Content-Type, Last-Modified, Origin, X-FusionAuth-TenantId, X-Requested-With"
}
]
}
]
}