Does anyone know how to increase timeout duration of api in vercel.
{
"functions": {
"api/src/functions/graphql.ts": {
"maxDuration": 120
}
}
}
{
"functions": {
"api/graphql": {
"maxDuration": 120
}
}
}
i tried above configurations but no luck.
i raised ticket in github but the answer didn’t fix the issue. 🚑 VERCEL DEPLOYMENT Error: The pattern "api/*.js" defined in `functions` doesn't match any Serverless Functions. · vercel · Discussion #4391 · GitHub
I have received a response from the Vercel support team. The issue has been resolved using the configuration provided below.
{
"functions": {
"api/src/functions/graphql.*": {
"maxDuration": 120,
"runtime": "@vercel/redwood@2.0.5"
}
}
}
Hi @dinakaranilabsinc that’s a great tip!
Any chance adding a PR to the documentation here to Deploy to Vercel | RedwoodJS Docs share this with others?
Looks great! Thanks so much for this contribution @dinakaranilabsinc !
It’s getting into main and should be in canary docs soon. And then published with next release.
1 Like