summaryrefslogtreecommitdiff
path: root/.changeset/tricky-candles-suffer.md
diff options
context:
space:
mode:
Diffstat (limited to '.changeset/tricky-candles-suffer.md')
-rw-r--r--.changeset/tricky-candles-suffer.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/.changeset/tricky-candles-suffer.md b/.changeset/tricky-candles-suffer.md
new file mode 100644
index 000000000..3786399a6
--- /dev/null
+++ b/.changeset/tricky-candles-suffer.md
@@ -0,0 +1,39 @@
+---
+'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
+ }),
+});
+```
+