diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md index 143a8db5c37b..44c0bc456dfc 100644 --- a/packages/integrations/vercel/README.md +++ b/packages/integrations/vercel/README.md @@ -261,6 +261,26 @@ export default defineConfig({ }); ``` +### maxDuration + +**Type:** `number`
+**Available for:** Serverless + +Use this property to extend or limit the maximum duration (in seconds) that the Serverless Function can run before timing out. See [Vercel documentation](https://vercel.com/docs/functions/serverless-functions/runtimes#maxduration) to find out the valid range for your plan. + +```js +// astro.config.mjs +import { defineConfig } from 'astro/config'; +import vercel from '@astrojs/vercel/serverless'; + +export default defineConfig({ + output: "server", + adapter: vercel({ ++ maxDuration: 60 + }), +}); +``` + ### Function bundling configuration The Vercel adapter combines all of your routes into a single function by default.