Compare commits

...

2 Commits

Author SHA1 Message Date
45cbff7672 Merge pull request 'Fix webp sprites not loading in production nginx' (#10) from develop into main
Reviewed-on: TheFurya/nuzlocke-tracker#10
2026-02-11 13:25:14 +01:00
Julian Tabel
174b145e84 Fix webp sprites not loading in production nginx
All checks were successful
CI / backend-lint (push) Successful in 7s
CI / frontend-lint (push) Successful in 30s
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 <noreply@anthropic.com>
2026-02-11 13:23:58 +01:00
2 changed files with 12 additions and 0 deletions

View File

@@ -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.

View File

@@ -1,6 +1,8 @@
server {
listen 80;
include /etc/nginx/mime.types;
root /usr/share/nginx/html;
index index.html;