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:
+7
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user