Skip to content

Commit

Permalink
adding jxl again?????
Browse files Browse the repository at this point in the history
  • Loading branch information
CKraft11 committed Sep 4, 2024
1 parent 4015d59 commit f168cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/content/images/_middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assetNegotiationPlugin from "pages-plugin-asset-negotiation";

export const onRequest: PagesFunction = assetNegotiationPlugin({
formats: ['avif','webp'], // The formats you want to support, in order of preference. This is the default configuration and will serve a jxl image if the browser supports it (and it was found) first, followed by avif and then webp.
formats: ['jxl','avif','webp'], // The formats you want to support, in order of preference. This is the default configuration and will serve a jxl image if the browser supports it (and it was found) first, followed by avif and then webp.
});

0 comments on commit f168cf0

Please sign in to comment.