Bitte nochmal machen
This commit is contained in:
@@ -33,6 +33,10 @@ function resolveImageUrl(value, fallback) {
|
||||
if (apiBaseUrl) {
|
||||
return `${apiBaseUrl}${path}`
|
||||
}
|
||||
// Fallback to current domain if no API base URL is set
|
||||
if (typeof window !== 'undefined') {
|
||||
return `${window.location.origin}${path}`
|
||||
}
|
||||
return path
|
||||
}
|
||||
return fallback
|
||||
|
||||
@@ -15,6 +15,10 @@ function resolveImageUrl(value) {
|
||||
if (apiBaseUrl) {
|
||||
return `${apiBaseUrl}${path}`
|
||||
}
|
||||
// Fallback to current domain if no API base URL is set
|
||||
if (typeof window !== 'undefined') {
|
||||
return `${window.location.origin}${path}`
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user