- -**Type:** `'client' | 'server'` -
- -Builds are separated in two distinct phases: `client` and `server`. This option allow you to determine the current build phase. - -This can be used to perform an action only in a specific phase: - -```js -export default { - name: 'my-integration', - hooks: { - 'astro:build:setup': ({ target }) => { - if (target === "server") { - // do something in server build phase - } - }, - } -} -``` - #### `updateConfig()` option@@ -1049,7 +1023,7 @@ export default {
-**Type:** [`SerializedSSRManifest`](https://github.com/withastro/astro/blob/3b10b97a4fecd1dfd959b160a07b5b8427fe40a7/packages/astro/src/core/app/types.ts#L91-L109) +**Type:** [`SerializedSSRManifest`](https://github.com/withastro/astro/blob/95a1969a05cc9c15f16dcf2177532882bb392581/packages/astro/src/core/app/types.ts#L126-L144)
Allows you to create a custom build by accessing the SSR manifest.