summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sarah Rainsberger <sarah@rainsberger.ca> 2023-12-08 18:04:54 -0400
committerGravatar GitHub <noreply@github.com> 2023-12-08 16:04:54 -0600
commitbebf5cf22d0d842670825aa961529e8b342e2b26 (patch)
tree130992e53d52e7e1d470a02787d2167ca6aac7a0
parent9d29ef11f680f002efcc5d557ae2d141f348cf0c (diff)
downloadastro-bebf5cf22d0d842670825aa961529e8b342e2b26.tar.gz
astro-bebf5cf22d0d842670825aa961529e8b342e2b26.tar.zst
astro-bebf5cf22d0d842670825aa961529e8b342e2b26.zip
[docs] Vercel README - update code samples (#9383)
-rw-r--r--.changeset/sweet-deers-watch.md5
-rw-r--r--packages/integrations/vercel/README.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/.changeset/sweet-deers-watch.md b/.changeset/sweet-deers-watch.md
new file mode 100644
index 000000000..a582602eb
--- /dev/null
+++ b/.changeset/sweet-deers-watch.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/vercel": patch
+---
+
+Fixes some incorrect code examples in the README documentation.
diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md
index bad219b98..9f25c2553 100644
--- a/packages/integrations/vercel/README.md
+++ b/packages/integrations/vercel/README.md
@@ -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 Vercel’s 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,
}),