@astrojs/cloudflare@7.0.0-beta.2
版本发布时间: 2023-08-18 23:49:51
withastro/astro最新发布版本:astro@5.0.0-beta.2(2024-09-24 17:12:05)
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 + }) })