Skip to content

Commit

Permalink
why wont this cf worker work
Browse files Browse the repository at this point in the history
  • Loading branch information
CKraft11 committed Sep 4, 2024
1 parent 01a9f99 commit ab6bfd2
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: ['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.
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 ab6bfd2

Please sign in to comment.