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.
This commit is contained in:
@@ -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<string>(() => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user