Next.js · Middle · Question 68 of 75
What does export const maxDuration = 60 do in a page or Route Handler?
- ✓Correct answer: Sets the maximum execution time (in seconds) for that route's server function on platforms that support it
- 2Caches the route for 60 seconds
- 3Delays the response by 60 seconds
Explanation
It's a route segment config read by deployment platforms. Server Actions inherit it from the page that uses them.