diff options
Diffstat (limited to '.changeset/fair-emus-divide.md')
-rw-r--r-- | .changeset/fair-emus-divide.md | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/.changeset/fair-emus-divide.md b/.changeset/fair-emus-divide.md deleted file mode 100644 index 529760241..000000000 --- a/.changeset/fair-emus-divide.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -'astro': major -'@astrojs/netlify': 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 netlify from "@astrojs/netlify/functions"; - -export default defineConfig({ - build: { -- excludeMiddleware: true - }, - adapter: netlify({ -+ 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 netlify from "@astrojs/netlify/functions"; - -export default defineConfig({ - build: { -- split: true - }, - adapter: netlify({ -+ functionPerRoute: true - }), -}); -``` - |