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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user