e79afddd767b9086f3b2ecabd7d8886db3e8ee11
nginx picks a regex location over a plain prefix location, so with `location /api/` the static-asset rule (\.png$ …) won any API request whose path ended in an image extension: /api/img/<hash>.png?w=400 was looked up under /usr/share/nginx/html and 404ed instead of reaching the API. The same file at /uploads/<hash>.png still loaded, which is exactly why an uploaded card thumbnail showed broken on the server but opened fine at full size — and why only .png/.jpg/.gif/.svg uploads were affected while .webp ones looked fine. ^~ stops the regex pass. Verified in an nginx:alpine container with this config: /api/img/abc.png?w=400 now reaches the proxy (502 without an upstream) instead of 404, while bundled assets still come from disk. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Description
No description provided
128 MiB
Languages
JavaScript
69.4%
TypeScript
15.4%
Vue
14.1%
Less
0.6%
PLpgSQL
0.3%
Other
0.1%