-
Notifications
You must be signed in to change notification settings - Fork 0
/
now.json
51 lines (51 loc) · 1.48 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
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
{
"version": 2,
"builds": [
{ "src": "api/src/index.js", "use": "@now/node" },
{
"src": "ui-react/package.json",
"use": "@now/static-build",
"config": {"distDir": "build"}
}
],
"routes": [
{ "src": "/graphql(.*)", "dest": "api/src/index.js" },
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "ui-react/static/$1"
},
{ "src": "/favicon.ico", "dest": "ui-react/favicon.ico" },
{ "src": "/img/(.*)", "dest": "ui-react/img/$1"},
{ "src": "/asset-manifest.json", "dest": "ui-react/asset-manifest.json" },
{ "src": "/manifest.json", "dest": "ui-react/manifest.json" },
{ "src": "/precache-manifest.(.*)", "dest": "ui-react/precache-manifest.$1" },
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "ui-react/service-worker.js"
},
{
"src": "^(.*)$",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/ui-react/index.html"
}
],
"build": {
"env": {
"REACT_APP_GRAPHQL_URI": "/graphql",
"NEO4J_URI": "@neo4j_uri",
"NEO4J_USER": "@neo4j_user",
"NEO4J_PASSWORD": "@neo4j_password"
}
},
"env": {
"NEO4J_URI": "@neo4j_uri",
"NEO4J_USER": "@neo4j_user",
"NEO4J_PASSWORD": "@neo4j_password",
"REACT_APP_GRAPHQL_URI": "/graphql",
"PROXY": "http://localhost:4001/graphql",
"GRAPHQL_LISTEN_PORT": "4001",
"GRAPHQL_URI": "/graphql"
}
}