Skip to content

Commit c90bb4e

Browse files
committed
Fix missing .webp due to .png conversion
1 parent e7de930 commit c90bb4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx/default.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,9 @@ server {
6060
rewrite ^(.*)$ /web/deeplink/snapcode/$arg_data.$fileext break;
6161
}
6262
}
63+
64+
# redirect all missing .webp files to .png if present
65+
location ~* (.*)\.webp$ {
66+
try_files $request_filename $1.png =404;
67+
}
6368
}

0 commit comments

Comments
 (0)