Next.js Discord

Discord Forum

Increase task timeout on NextJS 14 App Router hosted on Vercel Pro

Answered
Bigeye scad posted this in #help-forum
Open in Discord
Bigeye scadOP
Hello,

I'm getting a timeout error and I'm unsure how to debug it since I already added

export const maxDuration = 300;


to my route.

My understanding is that I'm not supposed to setup a glob operator in vercel.json.
Answered by Bigeye scad
Hey i resolved this by also adding that same line of code to my page.ts
View full answer

1 Reply

Bigeye scadOP
Hey i resolved this by also adding that same line of code to my page.ts
Answer