DEV: Allow webp images to be served directly by nginx (#30050)

This fixes a typo that was introduced in baa5389a23
This commit is contained in:
Alan Guo Xiang Tan 2024-12-03 06:26:13 +08:00 committed by GitHub
parent 98ba5f2dfa
commit c70816611f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ server {
try_files $uri =404;
}
# this allows us to bypass rails
location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|ico||avif)$ {
location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|ico|webp|avif)$ {
add_header Access-Control-Allow-Origin *;
try_files $uri =404;
}