Replace app name with title in root metadata

The root metadata in the application config now uses the title instead of the name both in the metadata base and openGraph sections. Adding title into OpenGraph can significantly improve SEO and make the app more discoverable on the internet.
This commit is contained in:
gbuomprisco
2024-06-21 01:22:25 +08:00
parent b288bca6b8
commit b3d938144f

View File

@@ -12,7 +12,7 @@ export const generateRootMetadata = (): Metadata => {
const csrfToken = headers().get('x-csrf-token') ?? '';
return {
title: appConfig.name,
title: appConfig.title,
description: appConfig.description,
metadataBase: new URL(appConfig.url),
applicationName: appConfig.name,
@@ -22,6 +22,7 @@ export const generateRootMetadata = (): Metadata => {
openGraph: {
url: appConfig.url,
siteName: appConfig.name,
title: appConfig.title,
description: appConfig.description,
},
twitter: {