fix: rewrite nerkh logo URLs to the SuperAdmin host

App logos now follow get_user.user.avatar instead of leftover nerkh.gold paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-07 16:56:54 +03:30
co-authored by Cursor
parent 065a0b3178
commit 7ab391d48f
6 changed files with 100 additions and 19 deletions
+7 -3
View File
@@ -1,10 +1,14 @@
import { rewriteLegacyUploadUrl } from '@/config/rewrite-legacy-upload-url'
export function getConfigApp(key: string) {
const config = window.__APP_CONFIG__ ? window.__APP_CONFIG__.user : {}
if (config) {
return config[key]
if (!config) return null
const value = config[key]
if (key === 'avatar') {
return rewriteLegacyUploadUrl(value) || value || null
}
return null
return value ?? null
}
export function isBoursecuProject() {