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

51 lines
927 B
JSON

{
"alias": "carbon.now.sh",
"version": 2,
"public": true,
"builds": [
{
"src": "package.json",
"use": "@now/next"
},
{
"src": "api/image/index.js",
"use": "@now/node",
"config": {
"maxLambdaSize": "40mb"
}
}
],
"routes": [
{
"src": "^/service-worker.js$",
"dest": "/_next/static/service-worker.js",
"headers": {
"Service-Worker-Allowed": "/"
}
},
{
"src": "/api/oembed",
"dest": "api/oembed.js",
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "*"
}
},
{
"src": "/api/image/?(?<id>[^/]*)",
"dest": "api/image/index.js?id=$id",
"methods": [
"POST",
"GET"
]
},
{
"src": "/api(/.*)?$",
"status": 404
}
],
"github": {
"autoAlias": false,
"silent": true
}
}