-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvercel.json
118 lines (118 loc) · 3.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"version": 2,
"builds": [
{
"src": "api/docs/index.html",
"use": "@now/static"
},
{
"src": "admin/docs/index.html",
"use": "@now/static"
},
{
"src": "api/**/*.js",
"use": "@now/node",
"config": {
"includeFiles": "node_modules/camaro/dist/camaro.wasm"
}
},
{
"src": "admin/**/*.js",
"use": "@now/node"
},
{
"src": "public/**",
"use": "@now/static"
}
],
"rewrites": [
{
"source": "/api/v1/orders/(.*)/fulfill",
"destination": "/api/v1/orders/[orderId]/fulfill.js?orderId=$1"
},
{
"source": "/api/v1/offers/search",
"destination": "/api/v1/searchOffers.js"
},
{
"source": "/api/v1/offers/(.*)/price",
"destination": "/api/v1/offers.js?offerIds=$1"
},
{
"source": "/api/v1/offers/(.*)/seatmap",
"destination": "/api/v1/seatmap.js?offerIds=$1"
},
{
"source": "/api/v1/(.*)",
"destination": "/api/v1/$1.js"
},
{
"source": "/api/docs/(.*)",
"destination": "public/$1"
},
{
"source": "/admin/v1/config/limits/(.*)",
"destination": "/admin/v1/config/limits.js?apiEndpoint=$1"
},
{
"source": "/admin/v1/orglist/(.*)",
"destination": "/admin/v1/orglist/index.js?listName=$1"
},
{
"source": "/admin/v1/hotels/search",
"destination": "/admin/v1/hotels/search.js"
},
{
"source": "/admin/v1/hotels/(.*)",
"destination": "/admin/v1/hotels/index.js?hotelId=$1"
},
{
"source": "/admin/v1/hotels",
"destination": "/admin/v1/hotels/index.js"
},
{
"source": "/admin/v1/(.*)",
"destination": "/admin/v1/$1.js"
},
{
"source": "/admin/docs/(.*)",
"destination": "public/$1"
},
{
"source": "/oauth2-redirect.html",
"destination": "public/oauth2-redirect.html"
}
],
"redirects": [
{
"source": "/",
"destination": "/api/docs/"
},
{
"source": "/api/docs",
"destination": "/api/docs/"
},
{
"source": "/admin",
"destination": "/admin/docs/"
},
{
"source": "/admin/docs",
"destination": "/admin/docs/"
}
],
"env": {
"MONGO_URL": "@staging.glider-aggregator.mongo_url",
"PRODUCTION_MONGO_URL": "@production.glider-aggregator.mongo_url",
"STAGING_PROFILE_SECRET": "@staging.glider-aggregator.profile_secret",
"PRODUCTION_PROFILE_SECRET": "@production.glider-aggregator.profile_secret"
},
"build": {
"env": {
"MONGO_URL": "@staging.glider-aggregator.mongo_url",
"PRODUCTION_MONGO_URL": "@production.glider-aggregator.mongo_url",
"STAGING_PROFILE_SECRET": "@staging.glider-aggregator.profile_secret",
"PRODUCTION_PROFILE_SECRET": "@production.glider-aggregator.profile_secret"
}
}
}