Fix webp sprites not loading in production nginx #10
@@ -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.
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user