Skip to content

Commit

Permalink
feat(docs): allow avif video assets
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed May 11, 2023
1 parent 5d0bb1f commit ee1f286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const AUDIO_EXT = ["mp3", "ogg"];
export const FONT_EXT = ["woff2"];
export const BINARY_IMAGE_EXT = ["gif", "jpeg", "jpg", "png", "webp"];
export const ANY_IMAGE_EXT = ["svg", ...BINARY_IMAGE_EXT];
export const VIDEO_EXT = ["mp4", "webm"];
export const VIDEO_EXT = ["avif", "mp4", "webm"];

export const BINARY_ATTACHMENT_EXT = [
...AUDIO_EXT,
Expand Down Expand Up @@ -243,6 +243,7 @@ export const VALID_MIME_TYPES = new Set([
"image/jpeg", // this is what you get for .jpeg *and* .jpg file extensions
"image/gif",
"image/webp",
"video/avif",
"video/mp4",
"video/ogg",
"video/webm",
Expand Down

0 comments on commit ee1f286

Please # to comment.