You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/now.json

37 lines
821 B
JSON

{
"name": "carbon",
"version": 2,
"public": true,
"builds": [{ "src": "package.json", "use": "@now/static-build" }],
"routes": [
{ "src": "^/about(.*)", "dest": "/about" },
{ "src": "^/embed(.*)", "dest": "/embed" },
{ "src": "^/_next/(.*)", "dest": "/_next/$1" },
{
"src": "^/service-worker.js$",
"dest": "/_next/service-worker.js",
"headers": {
"Service-Worker-Allowed": "/"
}
},
{
"src": "^/static/(.*)",
"dest": "/static/$1",
"headers": {
"cache-control": "public, max-age=43200, immutable"
}
},
{ "src": "^/(.*)", "dest": "/index.html" }
],
"build": {
"env": {
"NODE_ENV": "production",
"API_URL": "@carbon_api_url"
}
},
"github": {
"autoAlias": false,
"silent": true
}
}