mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
25 lines
510 B
Markdown
25 lines
510 B
Markdown
|
---
|
||
|
'astro': major
|
||
|
---
|
||
|
|
||
|
Remove `buildConfig` option parameter from integration `astro:build:start` hook in favour of the `build.config` option in the `astro:config:setup` hook.
|
||
|
|
||
|
```js
|
||
|
export default function myIntegration() {
|
||
|
return {
|
||
|
name: 'my-integration',
|
||
|
hooks: {
|
||
|
'astro:config:setup': ({ updateConfig }) => {
|
||
|
updateConfig({
|
||
|
build: {
|
||
|
client: '...',
|
||
|
server: '...',
|
||
|
serverEntry: '...',
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
```
|