-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Vercel README - update code samples (#9383)
- Loading branch information
1 parent
9d29ef1
commit bebf5cf
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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, | ||
}), | ||
|