Skip to content

Commit

Permalink
feat: skew protection (#8188)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
ematipico and sarah11918 authored May 8, 2024
1 parent 6b7f603 commit 6c5b742
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/content/docs/en/guides/integrations-guide/vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,27 @@ export default defineConfig({
});
```

### `skewProtection`

**Type:** `boolean`<br/>
**Available for:** Serverless
<Since pkg="@astrojs/vercel" v="7.6.0" />

Use this property to enable [Vercel Skew protection](https://vercel.com/docs/deployments/skew-protection) (available with Vercel Pro and Enterprise accounts).

```js title="astro.config.mjs" ins={8}
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';

export default defineConfig({
// ...
output: "server",
adapter: vercel({
skewProtection: true
}),
});
```

### Function bundling configuration

The Vercel adapter combines all of your routes into a single function by default.
Expand Down

0 comments on commit 6c5b742

Please sign in to comment.