update again
All checks were successful
deploy / deploy (push) Successful in 54s

This commit is contained in:
Lee 2023-10-23 07:18:06 +01:00
parent 508d961174
commit cb9c297351

@ -1,4 +1,5 @@
import PlayerPage from "@/components/player/PlayerPage"; import PlayerPage from "@/components/player/PlayerPage";
import { ssrSettings } from "@/ssrSettings";
import { ScoreSaberAPI } from "@/utils/scoresaber/api"; import { ScoreSaberAPI } from "@/utils/scoresaber/api";
import { Metadata } from "next"; import { Metadata } from "next";
@ -16,14 +17,18 @@ export async function generateMetadata({
}; };
} }
const description =
`View ${player.name}'s scores, top plays, and more.
` +
`Rank: #${player.rank} (#${player.countryRank} - ${player.country})
` +
`PP: ${player.pp}
` +
`Play Count: ${player.scoreStats.totalPlayCount}`;
return { return {
title: `${player.name}`, title: `${player.name}`,
description: description: description,
`View ${player.name}'s scores, top plays, and more.
` + openGraph: {
`Rank: #${player.rank} (#${player.countryRank} - ${player.country})
` + title: `${ssrSettings.siteName} - ${player.name}`,
`PP: ${player.pp}
` + description: description,
`Play Count: ${player.scoreStats.totalPlayCount}`,
twitter: {
images: [ images: [
{ {
url: player.profilePicture, url: player.profilePicture,