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

i18n(zh-cn): Update vercel.mdx #6132

Merged
merged 3 commits into from
Jan 5, 2024
Merged
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
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
Loading