This repository has been archived by the owner on May 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
/
vercel.json
54 lines (54 loc) · 1.63 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
{
"version": 2,
"builds": [
{ "src": "api/src/index.js", "use": "@vercel/node" },
{
"src": "web-react/package.json",
"use": "@vercel/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{ "src": "/graphql(.*)", "dest": "api/src/index.js" },
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "web-react/static/$1"
},
{ "src": "/favicon.ico", "dest": "web-react/favicon.ico" },
{ "src": "/img/(.*)", "dest": "web-react/img/$1" },
{ "src": "/asset-manifest.json", "dest": "web-react/asset-manifest.json" },
{ "src": "/manifest.json", "dest": "web-react/manifest.json" },
{
"src": "/precache-manifest.(.*)",
"dest": "web-react/precache-manifest.$1"
},
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "web-react/service-worker.js"
},
{
"src": "^(.*)$",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/web-react/index.html"
}
],
"build": {
"env": {
"REACT_APP_GRAPHQL_URI": "/graphql",
"NEO4J_URI": "@grand_stack_starter_neo4j_uri",
"NEO4J_USER": "@grand_stack_starter_neo4j_user",
"NEO4J_PASSWORD": "@grand_stack_starter_neo4j_password"
}
},
"env": {
"NEO4J_URI": "@grand_stack_starter_neo4j_uri",
"NEO4J_USER": "@grand_stack_starter_neo4j_user",
"NEO4J_PASSWORD": "@grand_stack_starter_neo4j_password",
"REACT_APP_GRAPHQL_URI": "/graphql",
"PROXY": "http://localhost:4001/graphql",
"GRAPHQL_LISTEN_PORT": "4001",
"GRAPHQL_URI": "/graphql"
}
}