mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
39 lines
932 B
Markdown
39 lines
932 B
Markdown
---
|
|
'astro': major
|
|
'@astrojs/vercel': minor
|
|
---
|
|
|
|
The `build.split` and `build.excludeMiddleware` configuration options are deprecated and have been replaced by options in the adapter config.
|
|
|
|
If your config includes the `build.excludeMiddleware` option, replace it with `edgeMiddleware` in your adapter options:
|
|
|
|
```diff
|
|
import { defineConfig } from "astro/config";
|
|
import vercel from "@astrojs/vercel/serverless";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
- excludeMiddleware: true
|
|
},
|
|
adapter: vercel({
|
|
+ edgeMiddleware: true
|
|
}),
|
|
});
|
|
```
|
|
|
|
If your config includes the `build.split` option, replace it with `functionPerRoute` in your adapter options:
|
|
|
|
```diff
|
|
import { defineConfig } from "astro/config";
|
|
import vercel from "@astrojs/vercel/serverless";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
- split: true
|
|
},
|
|
adapter: vercel({
|
|
+ functionPerRoute: true
|
|
}),
|
|
});
|
|
```
|
|
|