fix: remove trailing slash from nginx proxy_pass to preserve /api/ prefix

This commit is contained in:
ikechukwu Elizabeth
2026-04-19 19:22:56 +01:00
parent 6189c756f8
commit 243005d3c0
+1 -1
View File
@@ -8,7 +8,7 @@ server {
} }
location /api/ { location /api/ {
proxy_pass http://backend:3000/; proxy_pass http://backend:3000;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;