feat: redesign CMS and unify German admin UI
This commit is contained in:
+3
-3
@@ -9,8 +9,8 @@ function stripTrailingSlash(url: string): string {
|
||||
* The canonical base URL for the whole site. Prefers the CMS override
|
||||
* (SEO-Einstellungen → Website-URL) when it's a valid absolute URL, then
|
||||
* NEXT_PUBLIC_SERVER_URL (the single source of truth used everywhere else
|
||||
* in this app — emails, meeting links, Payload's own serverURL), then the
|
||||
* hardcoded siteConfig fallback. Never throws — SEO metadata must never
|
||||
* in this app - emails, meeting links, Payload's own serverURL), then the
|
||||
* hardcoded siteConfig fallback. Never throws - SEO metadata must never
|
||||
* break a page render.
|
||||
*/
|
||||
export async function getSiteUrl(): Promise<string> {
|
||||
@@ -20,7 +20,7 @@ export async function getSiteUrl(): Promise<string> {
|
||||
return stripTrailingSlash(settings.siteUrl);
|
||||
}
|
||||
} catch {
|
||||
// CMS/DB unreachable — fall through to the env-based default.
|
||||
// CMS/DB unreachable - fall through to the env-based default.
|
||||
}
|
||||
return stripTrailingSlash(process.env.NEXT_PUBLIC_SERVER_URL || siteConfig.domain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user