Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skew protection #8188

Merged
merged 6 commits into from
May 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 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,26 @@ export default defineConfig({
});
```

### `skewProtection`

**Type:** `boolean`<br/>
**Available for:** Serverless

ematipico marked this conversation as resolved.
Show resolved Hide resolved
Use this property to enable [Vercel Skew protection](https://vercel.com/docs/deployments/skew-protection). Reminder that Skew protection is only available for Pro and Enterprise accounts.
ematipico marked this conversation as resolved.
Show resolved Hide resolved

```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
Loading