How to increase server actions max duration?
Answered
Broad-snouted Caiman posted this in #help-forum
Broad-snouted CaimanOP
I created vercel.json time and passed this data
{
"functions": {
"app/components/**/*": {
"maxDuration": 240
}
}
}
but functions still output 504 after 15 secAnswered by Ray
https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#maxduration
you should use this with app router
you should use this with app router
5 Replies
@Broad-snouted Caiman I created vercel.json time and passed this data {
"functions": {
"app/components/**/*": {
"maxDuration": 240
}
}
} but functions still output 504 after 15 sec
https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#maxduration
you should use this with app router
you should use this with app router
Answer
Broad-snouted CaimanOP
Thanks!
@Broad-snouted Caiman Thanks!
np please mark solution if it works for you
Broad-snouted CaimanOP
How do I mark your answer as solution?
right click the answer > application > mark solution