feat: redesign CMS and unify German admin UI

This commit is contained in:
2026-09-17 16:51:24 +02:00
parent a2b3e99174
commit 7ec0c51ff5
129 changed files with 952 additions and 550 deletions
+3 -3
View File
@@ -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);
}