From 2494be955df37d622b107ba64dc58fd57d208199 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Tue, 12 May 2026 13:26:53 +0200 Subject: [PATCH] fix: point icon URLs at i.exil.es CDN The bare exil.es domain stopped serving /icons/ when it switched to a static landing page (sub-net ansible commit 10c742c). Icons live at i.exil.es. Replace hardcoded https://exil.es/icons/ refs in TalentCell fallback paths and the NEXT_PUBLIC_ICON_BASE default in TalentBuilder. --- talent-builder/src/components/TalentBuilder.tsx | 2 +- talent-builder/src/components/TalentCell.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/talent-builder/src/components/TalentBuilder.tsx b/talent-builder/src/components/TalentBuilder.tsx index 2ec079d..30da4f5 100644 --- a/talent-builder/src/components/TalentBuilder.tsx +++ b/talent-builder/src/components/TalentBuilder.tsx @@ -13,7 +13,7 @@ export function TalentBuilder() { const override = params.get("iconBase"); if (override) return ensureTrailingSlash(override); } - const envBase = (process.env.NEXT_PUBLIC_ICON_BASE as string | undefined) || "https://exil.es/icons/talents/"; + const envBase = (process.env.NEXT_PUBLIC_ICON_BASE as string | undefined) || "https://i.exil.es/icons/talents/"; return ensureTrailingSlash(envBase); }); const [className, setClassName] = useState(() => { diff --git a/talent-builder/src/components/TalentCell.tsx b/talent-builder/src/components/TalentCell.tsx index 90cbee2..21e6580 100644 --- a/talent-builder/src/components/TalentCell.tsx +++ b/talent-builder/src/components/TalentCell.tsx @@ -25,7 +25,7 @@ export function TalentCell({ talent, iconBaseUrl }: Props) { const filename = iconTextureToFilename(talent.iconTexture); // Special case for achievement icons const icon = filename === "achievement_garrisonfollower_epic.png" - ? "https://exil.es/icons/achievements/" + filename + ? "https://i.exil.es/icons/achievements/" + filename : iconBaseUrl + filename; const fallbackIcon = iconBaseUrl + "inv_misc_questionmark.png"; const rank = `${talent.currentRank}/${talent.maxRank}`; @@ -64,7 +64,7 @@ export function TalentCell({ talent, iconBaseUrl }: Props) { // Try alternative paths for missing icons if (currentSrc === icon && filename.startsWith("inv_")) { // Try /icons/items/ for inventory icons - el.src = "https://exil.es/icons/items/" + filename; + el.src = "https://i.exil.es/icons/items/" + filename; } else if (currentSrc !== fallbackIcon) { // Try fallback icon el.onerror = null;