fix(images): ship Linux codecs and preserve original-image fallback

Vendor the locked sharp Linux runtime and verify it during Docker builds. Add complete image response lengths and persistent frontend fallbacks, with real-codec HTTP and isolated release regression tests. Refresh tested API, admin and customer release artifacts.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mahmood
2026-11-26 18:12:21 +03:30
co-authored by Claude Code
parent a085c279f8
commit 3e9f532c6c
346 changed files with 33359 additions and 240 deletions
+1
View File
@@ -0,0 +1 @@
import{a8 as c}from"./index-CdZ5uJ6J.js";const r=["/uploads/","/api/uploads/"],a=(()=>{const e="/api/";return e.endsWith("/")?e:`${e}/`})();function d(e,i){if(!e)return;const n=r.find(s=>e.startsWith(s));if(!n)return e;const t=e.slice(n.length);return!t||/[/\\%?#]/.test(t)?e:`${a}img/${encodeURIComponent(t)}?w=${i}`}function o(e){const i=`${a}img/`;if(e.startsWith(i))try{const n=decodeURIComponent(e.slice(i.length).split(/[?#]/,1)[0]??"");return!n||n==="."||n===".."||/[/\\\u0000]/.test(n)?void 0:`/uploads/${encodeURIComponent(n)}`}catch{return}}function m(){const e=c(new Set),i=t=>t&&e.value.has(t)?o(t)??t:t;function n(t){!t||e.value.has(t)||!o(t)||(e.value=new Set([...e.value,t]))}return{imageSource:i,imageFailed:n}}export{d as i,o,m as u};