From 174b145e848022567ac0b1c5d1cbc6c530987c2f Mon Sep 17 00:00:00 2001 From: Julian Tabel Date: Wed, 11 Feb 2026 13:23:58 +0100 Subject: [PATCH] Fix webp sprites not loading in production nginx Include mime.types at the server block level to ensure .webp files are served with the correct Content-Type (image/webp). Co-Authored-By: Claude Opus 4.6 --- ...fix-webp-sprites-not-loading-in-production-nginx.md | 10 ++++++++++ frontend/nginx.conf | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 .beans/nuzlocke-tracker-5uoz--fix-webp-sprites-not-loading-in-production-nginx.md diff --git a/.beans/nuzlocke-tracker-5uoz--fix-webp-sprites-not-loading-in-production-nginx.md b/.beans/nuzlocke-tracker-5uoz--fix-webp-sprites-not-loading-in-production-nginx.md new file mode 100644 index 0000000..e8b0851 --- /dev/null +++ b/.beans/nuzlocke-tracker-5uoz--fix-webp-sprites-not-loading-in-production-nginx.md @@ -0,0 +1,10 @@ +--- +# nuzlocke-tracker-5uoz +title: Fix webp sprites not loading in production nginx +status: in-progress +type: bug +created_at: 2026-02-11T12:21:29Z +updated_at: 2026-02-11T12:21:29Z +--- + +Sprites (.webp) don't load in prod while .png images work fine. The files are in the container but nginx/proxy isn't serving them correctly. Fix by adding explicit webp MIME type to nginx config. \ No newline at end of file diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 1224549..4976a22 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,6 +1,8 @@ server { listen 80; + include /etc/nginx/mime.types; + root /usr/share/nginx/html; index index.html; -- 2.49.1