Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9073538

Browse files
author
Wenjie Xia
committed
refactor(server): update mime types
1 parent 2aebbd5 commit 9073538

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

server/mime.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const mimeTypes: Record<string, string[]> = {
77
'application/json5': ['json5'],
88
'application/pdf': ['pdf'],
99
'application/xml': ['xml', 'xsl'],
10+
'application/zip': ['zip'],
1011
// text
1112
'text/html': ['html', 'htm'],
1213
'text/markdown': ['md', 'markdown'],
@@ -26,21 +27,22 @@ const mimeTypes: Record<string, string[]> = {
2627
'font/woff2': ['woff2'],
2728
'font/collection': ['ttc'],
2829
// image
29-
'image/jpeg': ['jpeg', 'jpg', 'jpe'],
30+
'image/jpeg': ['jpg', 'jpeg'],
3031
'image/png': ['png'],
3132
'image/apng': ['apng'],
3233
'image/gif': ['gif'],
3334
'image/webp': ['webp'],
35+
'image/avif': ['avif'],
3436
'image/svg+xml': ['svg', 'svgz'],
3537
'image/x-icon': ['ico'],
3638
// audio
37-
'audio/mp4': ['m4a', 'mp4a'],
39+
'audio/mp4': ['m4a'],
3840
'audio/mpeg': ['mp3', 'm3a'],
39-
'audio/ogg': ['oga', 'ogg', 'spx'],
41+
'audio/ogg': ['ogg', 'oga'],
4042
'audio/wav': ['wav'],
4143
'audio/webm': ['weba'],
4244
// video
43-
'video/mp4': ['mp4', 'm4v', 'mp4v', 'mpg4'],
45+
'video/mp4': ['mp4', 'm4v'],
4446
'video/ogg': ['ogv'],
4547
'video/webm': ['webm'],
4648
}

0 commit comments

Comments
 (0)