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

765 B

astro @astrojs/vercel
major minor

The configuration build.split and build.excludeMiddleware are deprecated.

Configuration that were inside the astro configuration, are now moved inside the adapter:

import {defineConfig} from "astro/config";
import vercel from "@astrojs/vercel/serverless";

export default defineConfig({
-    build: {
-        excludeMiddleware: true
-    },
-    adapter: vercel()
+    adapter: vercel({
+        edgeMiddleware: true
+    })
})
import {defineConfig} from "astro/config";
import vercel from "@astrojs/vercel/serverless";

export default defineConfig({
-    build: {
-        split: true
-    },
-    adapter: vercel()
+    adapter: vercel({
+        functionPerRoute: true
+    })
})