Skip to content

Commit abe728d

Browse files
committed
Turn off cloudflare settings when images is turned off
1 parent f9b90d7 commit abe728d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/sections/ImageOptimization/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@ const ImageOptimization = () => {
122122
updated.bulk_optimization = value;
123123
updated.lazy_loading.enabled = value;
124124
updated.prefer_optimized_image_when_exists = value;
125+
updated.cloudflare = {
126+
polish: {
127+
value,
128+
user_set: true,
129+
},
130+
mirage: {
131+
value,
132+
user_set: true,
133+
},
134+
};
125135
break;
126136
case 'autoOptimizeEnabled':
127137
updated.auto_optimized_uploaded_images.enabled = value;

0 commit comments

Comments
 (0)