Skip to content

Commit

Permalink
i18n(zh-cn): Update vercel.mdx (#6132)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
liruifengv and sarah11918 authored Jan 5, 2024
1 parent cd2fcb3 commit 9cb2802
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions src/content/docs/zh-cn/guides/integrations-guide/vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ Astro 包含了一个 `astro add` 命令,用于自动设置官方集成。如
```js title="astro.config.mjs" ins={2, 6-7}
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';

export default defineConfig({
// ...
// ...
output: 'server',
adapter: vercel(),
});
````
```

### 选择目标

Expand Down Expand Up @@ -129,29 +130,6 @@ export default defineConfig({
});
```

### Speed Insights

你可以通过设置 `speedInsights: { enabled: true }` 来启用 [Vercel Speed Insights](https://vercel.com/docs/concepts/speed-insights)。这将收集并发送 Web Vital 数据到 Vercel。


**类型:** `VercelSpeedInsightsConfig`<br/>
**适用于:** Serverless, Static<br/>
<Since v="3.8.0" pkg="@astrojs/vercel" />

```js title="astro.config.mjs" ins={8-10}
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
// ...
output: 'server',
adapter: vercel({
speedInsights: {
enabled: true,
},
}),
});
```

### imagesConfig

**类型:** `VercelImageConfig`<br/>
Expand Down

1 comment on commit 9cb2802

@vercel
Copy link

@vercel vercel bot commented on 9cb2802 Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.