File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
packages/create-cloudflare/templates/astro Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " create-cloudflare " : patch
3+ ---
4+
5+ configure images processing to use "cloudflare" strategy in Astro projects
Original file line number Diff line number Diff line change @@ -44,12 +44,20 @@ const updateAstroConfig = () => {
4444 const b = recast . types . builders ;
4545 n . node . arguments = [
4646 b . objectExpression ( [
47+ // platformProxy: {
48+ // enabled: true,
49+ // },
4750 b . objectProperty (
4851 b . identifier ( "platformProxy" ) ,
4952 b . objectExpression ( [
5053 b . objectProperty ( b . identifier ( "enabled" ) , b . booleanLiteral ( true ) ) ,
5154 ] ) ,
5255 ) ,
56+ // imageService: "cloudflare",
57+ b . objectProperty (
58+ b . identifier ( "imageService" ) ,
59+ b . stringLiteral ( "cloudflare" ) ,
60+ ) ,
5361 ] ) ,
5462 ] ;
5563
Original file line number Diff line number Diff line change @@ -44,12 +44,20 @@ const updateAstroConfig = () => {
4444 const b = recast . types . builders ;
4545 n . node . arguments = [
4646 b . objectExpression ( [
47+ // platformProxy: {
48+ // enabled: true,
49+ // },
4750 b . objectProperty (
4851 b . identifier ( "platformProxy" ) ,
4952 b . objectExpression ( [
5053 b . objectProperty ( b . identifier ( "enabled" ) , b . booleanLiteral ( true ) ) ,
5154 ] ) ,
5255 ) ,
56+ // imageService: "cloudflare",
57+ b . objectProperty (
58+ b . identifier ( "imageService" ) ,
59+ b . stringLiteral ( "cloudflare" ) ,
60+ ) ,
5361 ] ) ,
5462 ] ;
5563
You can’t perform that action at this time.
0 commit comments