Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (66 sloc) 1.34 KB
{
"version": 2,
"name": "LabTrail",
"env": {
"MONGODB_URI": "@mongodb_uri",
"JWT_SECRET": "@jwt_secret"
},
"build": {
"env": {
"REACT_APP_APOLLO_URL": "/api"
}
},
"builds": [
{
"src": "auth/index.js",
"use": "@now/node"
},
{
"src": "qr/index.js",
"use": "@now/node"
},
{
"src": "api/index.js",
"use": "@now/node"
},
{
"src": "app/package.json",
"use": "@now/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"src": "/api",
"dest": "api/index.js"
},
{
"src": "/qr/(.*)",
"dest": "qr/index.js"
},
{
"src": "/sso/(.*)",
"dest": "auth/index.js"
},
{
"src": "/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "app/static/$1"
},
{ "src": "/favicon.(.*)", "dest": "app/favicon.$1" },
{ "src": "/asset-manifest.json", "dest": "app/asset-manifest.json" },
{ "src": "/manifest.json", "dest": "app/manifest.json" },
{ "src": "/precache-manifest.(.*)", "dest": "app/precache-manifest.$1" },
{
"src": "/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "app/service-worker.js"
},
{ "src": "/sockjs-node/(.*)", "dest": "app/sockjs-node/$1" },
{
"src": "/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "app/index.html"
}
]
}
You can’t perform that action at this time.