@astrojs/cloudflare@7.0.0-beta.2
版本发布时间: 2023-08-18 23:49:51
withastro/astro最新发布版本:astro@4.16.16(2024-11-27 22:22:39)
Major Changes
-
#8078
2540feedb
Thanks @alexanderniebuhr! - The configurationbuild.split
andbuild.excludeMiddleware
are deprecated.You can now configure this behavior using
functionPerRoute
in your Cloudflare integration config:import {defineConfig} from "astro/config"; import cloudflare from '@astrojs/cloudflare'; export default defineConfig({ - build: { - split: true - }, - adapter: cloudflare() + adapter: cloudflare({ + mode: 'directory', + functionPerRoute: true + }) })