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

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;
}