forked from janzheng/phagedirectory-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnow-spa.json
102 lines (86 loc) · 3.81 KB
/
now-spa.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
{
"version": 2,
"alias":["phage.directory", "phagedirectory.org", "www.phage.directory"],
"name":"phagedirectory-spa",
"public":false,
"env": {
"PD_AIRTABLE_PUBLIC_API": "@pd-airtable-public-api",
"PD_AIRTABLE_PUBLIC_BASE": "@pd-airtable-public-base",
"PD_AIRTABLE_DB_API": "@pd-airtable-db-api",
"PD_AIRTABLE_DB_BASE": "@pd-airtable-db-base",
"PD_AIRTABLE_PRIVATE_MGR_API": "@pd-airtable-private-mgr-api",
"PD_AIRTABLE_PRIVATE_MGR_BASE": "@pd-airtable-private-mgr-base",
"MODE": "spa",
"PD_ENV": "prod",
"API_URL": "https://phage.directory"
},
"build": {
"env": {
"PD_AIRTABLE_PUBLIC_API": "@pd-airtable-public-api",
"PD_AIRTABLE_PUBLIC_BASE": "@pd-airtable-public-base",
"PD_AIRTABLE_PRIVATE_MGR_API": "@pd-airtable-private-mgr-api",
"PD_AIRTABLE_PRIVATE_MGR_BASE": "@pd-airtable-private-mgr-base",
"PD_AIRTABLE_DB_API": "@pd-airtable-db-api",
"PD_AIRTABLE_DB_BASE": "@pd-airtable-db-base",
"MODE": "spa",
"PD_ENV": "prod",
"API_URL": "https://phage.directory"
}
},
"builds": [
{
"src": "404.html",
"use": "@now/static"
},
{
"src": "api/routes/**/*.js",
"use": "@now/node"
},
{
"src": "nuxt.config.js",
"use": "@nuxtjs/now-builder",
"config": {
"serverFiles": [
"assets/**",
"components/**",
"layouts/**",
"middleware/**",
"other/**",
"pages/**",
"plugins/**",
"static/**",
"store/**",
"templates/**",
"package.json"
]
}
}
],
"routes": [
{ "src": "/404.html", "dest": "404.html" },
{ "src": "/api/hello(.*)", "dest": "api/routes/hello" },
{ "src": "/api/users(.*)", "dest": "api/routes/hello" },
{ "src": "/api/allusers(.*)", "dest": "api/routes/hello" },
{ "src": "/api/timeline(.*)", "dest": "api/routes/timeline.js" },
{ "src": "/api/profile(.*)", "dest": "api/routes/profile.js" },
{ "src": "/api/cite(.*)", "dest": "api/routes/cite.js" },
{ "src": "/api/exocytosis(.*)", "dest": "api/routes/exocytosis.js" },
{ "src": "/api/(.*)", "dest": "api/routes/$1" },
{ "src": "/api", "dest": "api/routes/index.js" },
{ "src": "/_nuxt/.+", "headers": { "cache-control": "s-maxage=31536000" } },
{ "src": "/feed.xml", "dest": "https://wt-ece6cabd401b68e3fc2743969a9c99f0-0.sandbox.auth0-extend.com/PDv3-rss" },
{ "src": "/slack", "status": 301, "headers": { "Location": "https://phagedirectory.slack.com/join/shared_invite/enQtNzA2OTI0MTk4Mzc0LTU4Yjg0NTY2NWEyMzUyZDMxMDJjMmEyZGFiNDcyYmIxMzYxYTRkZjBjZGY3YjNlODc2MWFhNTAwNjBmYzQyYmY" }},
{ "src": "/chat", "status": 301, "headers": { "Location": "https://calendly.com/phage/quick-chat" }},
{ "src": "/apply/profile", "status": 301, "headers": { "Location": "https://airtable.com/shrbZHMw6R2dCij9v" } },
{ "src": "/apply/researchers", "status": 301, "headers": { "Location": "https://airtable.com/shrJzoZ7LocbmuTNP" } },
{ "src": "/apply/professionals", "status": 301, "headers": { "Location": "https://airtable.com/shrJzoZ7LocbmuTNP" } },
{ "src": "/apply/labs", "status": 301, "headers": { "Location": "https://airtable.com/shrRZfnjvaKOx3eeK" } },
{ "src": "/apply/medical", "status": 301, "headers": { "Location": "https://airtable.com/shrdIUxOsr411hNwR" } },
{ "src": "/apply/phagebanks", "status": 301, "headers": { "Location": "https://airtable.com/shrPtmSf5dxdeBnoy" } },
{ "src": "/apply/orgs", "status": 301, "headers": { "Location": "https://airtable.com/shrYdNUwSLMKUvRhz" } },
{ "src": "/staging", "status": 301, "headers": { "Location": "https://phagedirectory-staging.yawnxyz.now.sh" } },
{ "src": "/(.*)", "dest": "/" },
{ "handle": "filesystem" },
{ "src": "/.*", "status": 404, "dest": "/error.html" }
]
}