feat: enhance branding options with custom favicon and logos in configuration

This commit is contained in:
Linus Rath
2026-03-17 15:25:06 +01:00
parent 54f4d37595
commit 7c5785e9e8
7 changed files with 109 additions and 17 deletions
+9 -4
View File
@@ -14,10 +14,15 @@ const geistMono = Geist_Mono({
subsets: ["latin"],
});
export const metadata: Metadata = {
title: process.env.APP_NAME || process.env.NEXT_PUBLIC_APP_NAME || "Webmail",
description: "Minimalist webmail client using JMAP protocol",
};
export async function generateMetadata(): Promise<Metadata> {
const faviconUrl = process.env.FAVICON_URL;
return {
title: process.env.APP_NAME || process.env.NEXT_PUBLIC_APP_NAME || "Webmail",
description: "Minimalist webmail client using JMAP protocol",
...(faviconUrl ? { icons: { icon: faviconUrl } } : {}),
};
}
export default async function RootLayout({
children,