Unverified Commit 68dd495d authored by Ahmed Abdelbaset's avatar Ahmed Abdelbaset Committed by GitHub

Add `maxDuration` to typescript plugin allowed exports (#59193)

According to
[docs](https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#maxduration)
and
[tests](https://github.com/vercel/next.js/blob/a3616d33edc40e7717b258f2636f280e30a3bccb/test/e2e/app-dir/with-exported-function-config/app/app-ssr-edge/page.tsx#L6C1-L6C7).
`maxDuration` should be a valid export. currently TypeScript plugin
throws.

---------
Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
parent c5d470a4
...@@ -134,6 +134,11 @@ const API_DOCS: Record< ...@@ -134,6 +134,11 @@ const API_DOCS: Record<
description: 'Next.js Metadata configurations', description: 'Next.js Metadata configurations',
link: 'https://nextjs.org/docs/app/api-reference/file-conventions/metadata', link: 'https://nextjs.org/docs/app/api-reference/file-conventions/metadata',
}, },
maxDuration: {
description:
'`maxDuration` allows you to set max default execution time for your function. If it is not specified, the default value is dependent on your deployment platform and plan.',
link: 'https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#maxduration',
},
} }
function visitEntryConfig( function visitEntryConfig(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment