We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c59575 commit 6fc2498Copy full SHA for 6fc2498
web/src/app/(content)/song/[id]/page.tsx
@@ -14,6 +14,7 @@ export async function generateMetadata({
14
params,
15
}: SongPage): Promise<Metadata> {
16
let song;
17
+ const publicUrl = process.env.NEXT_PUBLIC_URL;
18
19
try {
20
const response = await axios.get<SongViewDtoType>(`/song/${params.id}`);
@@ -27,7 +28,12 @@ export async function generateMetadata({
27
28
return {
29
title: song.title,
30
description: song.description,
31
+ authors: [{ name: song.uploader.username }],
32
openGraph: {
33
+ url: publicUrl + '/song/' + song.publicId,
34
+ title: song.title,
35
+ description: song.description,
36
+ siteName: 'Note Block World',
37
images: [song.thumbnailUrl],
38
},
39
twitter: {
0 commit comments