0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[docs] Vercel README - update code samples (#9383)

This commit is contained in:
Sarah Rainsberger 2023-12-08 18:04:54 -04:00 committed by GitHub
parent 9d29ef11f6
commit bebf5cf22d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/vercel": patch
---
Fixes some incorrect code examples in the README documentation.

View file

@ -88,7 +88,7 @@ To configure this adapter, pass an object to the `vercel()` function call in `as
### Web Analytics
**Type:** `VercelWebAnalyticsConfig`<br>
**Available for:** Serverless, Edge, Static<br>
**Available for:** Serverless, Static<br>
**Added in:** `@astrojs/vercel@3.8.0`
You can enable [Vercel Web Analytics](https://vercel.com/docs/concepts/analytics) by setting `webAnalytics: { enabled: true }`. This will inject Vercels tracking scripts into all of your pages.
@ -113,7 +113,7 @@ export default defineConfig({
You can enable [Vercel Speed Insights](https://vercel.com/docs/concepts/speed-insights) by setting `speedInsights: { enabled: true }`. This will collect and send Web Vital data to Vercel.
**Type:** `VercelSpeedInsightsConfig`<br>
**Available for:** Serverless, Edge, Static<br>
**Available for:** Serverless, Static<br>
**Added in:** `@astrojs/vercel@3.8.0`
```js
@ -147,7 +147,7 @@ import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/static';
export default defineConfig({
output: 'server',
output: 'static',
adapter: vercel({
imagesConfig: {
sizes: [320, 640, 1280],
@ -170,7 +170,7 @@ import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/static';
export default defineConfig({
output: 'server',
output: 'static',
adapter: vercel({
imageService: true,
}),