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` 选项