Skip to content

Commit 1f2b7f7

Browse files
authored
Prevent resizing AVIF (not supported by Cloudflare) (#2621)
1 parent 39e5cb6 commit 1f2b7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/lib/images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function checkIsSizableImageURL(input: string): boolean {
6767
}
6868

6969
const parsed = new URL(input);
70-
if (parsed.pathname.endsWith('.svg')) {
70+
if (parsed.pathname.endsWith('.svg') || parsed.pathname.endsWith('.avif')) {
7171
return false;
7272
}
7373
if (!checkIsHttpURL(parsed)) {

0 commit comments

Comments
 (0)