mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
24 lines
518 B
Markdown
24 lines
518 B
Markdown
|
---
|
||
|
'@astrojs/cloudflare': major
|
||
|
---
|
||
|
|
||
|
The configuration `build.split` and `build.excludeMiddleware` are deprecated.
|
||
|
|
||
|
You can now configure this behavior using `functionPerRoute` in your Cloudflare integration config:
|
||
|
|
||
|
```diff
|
||
|
import {defineConfig} from "astro/config";
|
||
|
import cloudflare from '@astrojs/cloudflare';
|
||
|
|
||
|
export default defineConfig({
|
||
|
- build: {
|
||
|
- split: true
|
||
|
- },
|
||
|
- adapter: cloudflare()
|
||
|
+ adapter: cloudflare({
|
||
|
+ mode: 'directory',
|
||
|
+ functionPerRoute: true
|
||
|
+ })
|
||
|
})
|
||
|
```
|