From 0eb1290d91d0f5cc5e108abf5dd61932c9accbbc Mon Sep 17 00:00:00 2001 From: pieh Date: Thu, 8 Aug 2024 15:40:29 +0200 Subject: [PATCH] use imageCDNCompat mode with ipx ef --- src/build/templates/ipx-edge-accept-handler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, +})