From ee1f286f16781d71c72b844c9bb3fab503fc6ff6 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 11 May 2023 23:13:01 +0200 Subject: [PATCH] feat(docs): allow avif video assets --- libs/constants/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/constants/index.js b/libs/constants/index.js index aa9cc7961941..6070d18839a2 100644 --- a/libs/constants/index.js +++ b/libs/constants/index.js @@ -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, @@ -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",