0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/.changeset/tricky-candles-suffer.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
932 B
Markdown
Raw Normal View History

---
'astro': major
'@astrojs/vercel': minor
---
2023-07-28 07:09:59 -05:00
The `build.split` and `build.excludeMiddleware` configuration options are deprecated and have been replaced by options in the adapter config.
2023-07-28 07:09:59 -05:00
If your config includes the `build.excludeMiddleware` option, replace it with `edgeMiddleware` in your adapter options:
```diff
2023-07-28 07:09:59 -05:00
import { defineConfig } from "astro/config";
import vercel from "@astrojs/vercel/serverless";
export default defineConfig({
2023-07-28 07:09:59 -05:00
build: {
- excludeMiddleware: true
2023-07-28 07:09:59 -05:00
},
adapter: vercel({
+ edgeMiddleware: true
2023-07-28 07:09:59 -05:00
}),
});
```
2023-07-28 07:09:59 -05:00
If your config includes the `build.split` option, replace it with `functionPerRoute` in your adapter options:
```diff
2023-07-28 07:09:59 -05:00
import { defineConfig } from "astro/config";
import vercel from "@astrojs/vercel/serverless";
export default defineConfig({
2023-07-28 07:09:59 -05:00
build: {
- split: true
2023-07-28 07:09:59 -05:00
},
adapter: vercel({
+ functionPerRoute: true
2023-07-28 07:09:59 -05:00
}),
});
```