772 B
772 B
astro | @astrojs/netlify |
---|---|
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 netlify from "@astrojs/netlify/functions";
export default defineConfig({
- build: {
- excludeMiddleware: true
- },
- adapter: netlify()
+ adapter: netlify({
+ edgeMiddleware: true
+ })
})
import {defineConfig} from "astro/config";
import netlify from "@astrojs/netlify/functions";
export default defineConfig({
- build: {
- split: true
- },
- adapter: netlify()
+ adapter: netlify({
+ functionPerRoute: true
+ })
})