本页还没有译文
本页 6 段还没译成한국어,下面显示的是英文原文。maxDuration
还没翻译译自英文(nextjs.org)本页 6 段都还没译
The maxDuration option allows you to set the maximum execution time (in seconds) for server-side logic in a route segment. Deployment platforms can use maxDuration from the Next.js build output to add specific execution limits.
layout.tsx | page.tsx | route.ts
export const maxDuration = 5layout.js | page.js | route.js
export const maxDuration = 5Server Actions
If using Server Actions, set the maxDuration at the page level to change the default timeout of all Server Actions used on the page.
Version History
| Version | Changes |
|---|---|
v13.4.10 | maxDuration introduced. |
AI 翻译查看英文原文