Skip to content

Commit

Permalink
use imageCDNCompat mode with ipx ef
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Aug 8, 2024
1 parent fc271eb commit 0eb1290
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build/templates/ipx-edge-accept-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

0 comments on commit 0eb1290

Please sign in to comment.