Skip to content

Commit a90f56f

Browse files
committed
fix: cloudflare compat flags
1 parent 42b2fa3 commit a90f56f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export default defineConfig({
5454
platformProxy: {
5555
enabled: true,
5656
},
57+
imageService: 'compile', // Use sharp at build time for image optimization
5758
}),
5859

5960
markdown: {

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "shovanch-com"
22
compatibility_date = "2024-12-01"
3-
compatibility_flags = ["nodejs_compat"]
3+
compatibility_flags = ["nodejs_compat_v2"]
44

55
# Pages configuration
66
pages_build_output_dir = "./dist"

0 commit comments

Comments
 (0)