chore: fix pre-existing biome formatting issues

This commit is contained in:
ashim-hq
2026-04-21 23:25:41 +08:00
parent afac4b9870
commit 7920fbfd20
5 changed files with 33 additions and 18 deletions
+15 -8
View File
@@ -1,14 +1,21 @@
import { formatHeaders } from "@/lib/api";
const SERVER_PREVIEW_EXTENSIONS = new Set([
"heic", "heif", "hif", // HEIF
"jxl", // JPEG XL (Chrome dropped support)
"ico", // ICO (Sharp can't decode)
"dng", "cr2", "nef", "arw", "orf", "rw2", // Camera RAW
"tga", // Targa
"psd", // Photoshop
"exr", // OpenEXR
"hdr", // Radiance HDR
"heic",
"heif",
"hif", // HEIF
"jxl", // JPEG XL (Chrome dropped support)
"ico", // ICO (Sharp can't decode)
"dng",
"cr2",
"nef",
"arw",
"orf",
"rw2", // Camera RAW
"tga", // Targa
"psd", // Photoshop
"exr", // OpenEXR
"hdr", // Radiance HDR
]);
export function needsServerPreview(file: File): boolean {