You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I subscribed to pro for a longer function timeout limit, but I have trouble in configuring maxDuration, I'm using node.js and express.js. I got error:
The vercel.json schema validation failed with the following message: builds[0] should NOT have additional property functions
no matter I put the functions inside or outside the builds array. Here is my current vercel.json file and the file structure:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I subscribed to pro for a longer function timeout limit, but I have trouble in configuring maxDuration, I'm using node.js and express.js. I got error:
The
vercel.json
schema validation failed with the following message:builds[0]
should NOT have additional propertyfunctions
no matter I put the functions inside or outside the builds array. Here is my current vercel.json file and the file structure:
{ "version": 2, "builds": [ { "src": "./index.js", "use": "@vercel/node" } ], "routes": [ { "src": "/(.*)", "dest": "/index.js", "methods": [ "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS" ], "headers": { "Access-Control-Allow-Origin": "*" } } ], "functions": { "*.js": { "runtime": "@vercel/node@latest", "maxDuration": 60 } } }
Beta Was this translation helpful? Give feedback.
All reactions