Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docs
Browse files Browse the repository at this point in the history
lilnasy committed Oct 19, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
lilnasy Arsh
1 parent 969a00b commit 06daf3c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/integrations/vercel/README.md
Original file line number Diff line number Diff line change
@@ -261,6 +261,26 @@ export default defineConfig({
});
```

### maxDuration

**Type:** `number`<br>
**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.

0 comments on commit 06daf3c

Please sign in to comment.