From 6ac9cfe0490606c8d75bc666edeff0ac804bc761 Mon Sep 17 00:00:00 2001 From: Nin3 <30520689+Nin3lee@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:23:22 +0800 Subject: [PATCH] i18n(zh-cn): Update `integrations-reference.mdx` --- .../docs/zh-cn/reference/integrations-reference.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/docs/zh-cn/reference/integrations-reference.mdx b/src/content/docs/zh-cn/reference/integrations-reference.mdx index 5184d5e470883..4f5e3048e0ed5 100644 --- a/src/content/docs/zh-cn/reference/integrations-reference.mdx +++ b/src/content/docs/zh-cn/reference/integrations-reference.mdx @@ -24,7 +24,7 @@ interface AstroIntegration { hooks: { 'astro:config:setup'?: (options: { config: AstroConfig; - command: 'dev' | 'build' | 'preview'; + command: 'dev' | 'build' | 'preview' | 'sync'; isRestart: boolean; updateConfig: (newConfig: DeepPartial) => AstroConfig; addRenderer: (renderer: AstroRenderer) => void; @@ -83,7 +83,7 @@ Astro 内置了以下钩子: ```ts 'astro:config:setup'?: (options: { config: AstroConfig; - command: 'dev' | 'build' | 'preview'; + command: 'dev' | 'build' | 'preview' | 'sync'; isRestart: boolean; updateConfig: (newConfig: DeepPartial) => AstroConfig; addRenderer: (renderer: AstroRenderer) => void; @@ -105,11 +105,12 @@ Astro 内置了以下钩子: #### `command` 选项 -**类型**:`'dev' | 'build' | 'preview'` +**类型:** `'dev' | 'build' | 'preview' | 'sync'` - `dev` - 项目执行 `astro dev` - `build` - 项目执行 `astro build` - `preview` - 项目执行 `astro preview` +- `sync` - 项目执行 `astro sync` #### `isRestart` 选项