fix(branding): render theme assets and dynamic metadata

This commit is contained in:
poyrazavsever
2026-07-17 21:56:29 +03:00
parent b603f260f8
commit ae370b4313
12 changed files with 28 additions and 15 deletions
+6 -1
View File
@@ -22,11 +22,16 @@ const colorModeScript = `(() => {
export function generateMetadata(): Metadata {
const branding = getPublicBranding();
const faviconUrl = branding.iconUrl ?? "/logo/iconLogo.png";
return {
title: { default: branding.applicationName, template: `%s · ${branding.applicationName}` },
description: "Self-hosted freelancer operating dashboard",
manifest: "/manifest.webmanifest",
icons: branding.iconUrl ? { icon: branding.iconUrl, apple: branding.iconUrl } : undefined,
icons: {
icon: [{ url: faviconUrl, type: "image/png" }],
shortcut: [{ url: faviconUrl, type: "image/png" }],
apple: [{ url: faviconUrl, type: "image/png" }],
},
appleWebApp: {
capable: true,
statusBarStyle: "default",