diff --git a/src/build/templates/ipx-edge-accept-handler.ts b/src/build/templates/ipx-edge-accept-handler.ts index d5fbbe10b..bd152c26e 100644 --- a/src/build/templates/ipx-edge-accept-handler.ts +++ b/src/build/templates/ipx-edge-accept-handler.ts @@ -6,4 +6,8 @@ import { getHandler } from 'https://ipx-edge-function-layer.netlify.app/mod.ts' // @ts-ignore Injected at build time import imageconfig from './imageconfig.json' assert { type: 'json' } -export default getHandler({ formats: imageconfig?.formats, basePath: imageconfig?.basePath }) +export default getHandler({ + formats: imageconfig?.formats, + basePath: imageconfig?.basePath, + imageCDNCompat: true, +})