-
Notifications
You must be signed in to change notification settings - Fork 39
/
now.json
26 lines (26 loc) · 1.18 KB
/
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
{
"version": 2,
"name": "gurivr",
"builds": [
{ "src": "api/**", "use": "@now/node" },
{ "src": "client/dist/**", "use": "@now/static" }
],
"routes": [
{ "src": "/(.*)", "dest": "200.js", "headers": { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Methods": "OPTIONS", "Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization" }, "methods": ["OPTIONS"] },
{ "src": "/api/preview", "dest": "api/preview.js" },
{ "src": "/api/stories", "dest": "api/stories.js" },
{ "src": "/api/stories/([^/]+)", "dest": "api/story.js?id=$1" },
{ "src": "/api/assets/search", "dest": "api/assets/search.js", "headers": { "Access-Control-Allow-Origin": "*" } },
{ "src": "/(login|guide|stories)", "dest": "/client/dist/index.html" },
{ "src": "/stories/create", "dest": "/client/dist/index.html" },
{ "src": "/(.*)", "dest": "/client/dist/$1" }
],
"env": {
"FIREBASE_ADMIN": "@firebase-admin",
"FLICKR_SECRET_KEY": "@flickr-secret-key",
"GMAPS_SECRET_KEY": "@gmaps-secret-key",
"FREESOUND_SECRET_KEY": "@freesound-secret-key",
"STORAGE_BUCKET": "@storage-bucket",
"POLY_API_KEY": "@poly-api-key"
}
}