update now.json

main
Mike Fix 3 years ago
parent 9b59d00537
commit 40010a788d
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -3,8 +3,17 @@
"version": 2, "version": 2,
"public": true, "public": true,
"builds": [ "builds": [
{ "src": "package.json", "use": "@now/next" }, {
{ "src": "api/image/index.js", "use": "@now/node", "config": { "maxLambdaSize": "40mb" } } "src": "package.json",
"use": "@now/next"
},
{
"src": "api/image/index.js",
"use": "@now/node",
"config": {
"maxLambdaSize": "40mb"
}
}
], ],
"routes": [ "routes": [
{ {
@ -17,17 +26,26 @@
{ {
"src": "/api/oembed", "src": "/api/oembed",
"dest": "api/oembed.js", "dest": "api/oembed.js",
"headers": { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*" } "headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "*"
}
}, },
{ {
"src": "/api/image/?(?<id>[^/]*)", "src": "/api/image/?(?<id>[^/]*)",
"dest": "api/image/index.js?id=$id", "dest": "api/image/index.js?id=$id",
"methods": ["POST", "GET"] "methods": [
"POST",
"GET"
]
}, },
{ "src": "/api/.*", "status": 404 } {
"src": "/api(/.*)?$",
"status": 404
}
], ],
"github": { "github": {
"autoAlias": false, "autoAlias": false,
"silent": true "silent": true
} }
} }
Loading…
Cancel
Save