"use server" with maxDuration
Unanswered
Oak apple gall wasp posted this in #help-forum
Oak apple gall waspOP
Hi guys, I have trouble with 'server actions'
I have an action which needs 2 minutes roughly, but server actions are being executed only 30seconds, how can I increase the timeout?
I can't export maxDuration because it's prohibited in 'server actions' file
I have an action which needs 2 minutes roughly, but server actions are being executed only 30seconds, how can I increase the timeout?
I can't export maxDuration because it's prohibited in 'server actions' file
2 Replies
Oak apple gall waspOP
Shy Albatross
2 minutes woo wee, maybe don't have client wait 2 minutes for a response, but rather return an uid that allows the client to poll an endpoint that will return something once the background work is completed