Next.js · Middle · Question 68 of 75

What does export const maxDuration = 60 do in a page or Route Handler?

Explanation

It's a route segment config read by deployment platforms. Server Actions inherit it from the page that uses them.

Further reading

Problem with a question

Next.js · Middle · question 68

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz