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

[docs] Vercel README - update code samples #9383

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/sweet-deers-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/vercel": patch
---

Fixes some incorrect code examples in the README documentation.
8 changes: 4 additions & 4 deletions packages/integrations/vercel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]`

You can enable [Vercel Web Analytics](https://vercel.com/docs/concepts/analytics) by setting `webAnalytics: { enabled: true }`. This will inject Vercel’s tracking scripts into all of your pages.
Expand All @@ -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/[email protected]`

```js
Expand Down Expand Up @@ -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],
Expand All @@ -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,
}),
Expand Down
Loading