Skip to content

Commit 287fb28

Browse files
committed
review: comment
1 parent 86f2465 commit 287fb28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/gitbook/src/components/SitePage/SitePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
184184
languages: alternates?.languages,
185185
types: {
186186
'text/markdown': `${linker.toAbsoluteURL(linker.toPathInSpace(page.path))}.md`,
187+
// Currently it will output with an empty "type" like <link rel="alternate" href="..." type />
188+
// Team at Vercel is aware of this and will ensure it will be omitted when the value is empty in future versions of Next.js
189+
// https://gitbook.slack.com/archives/C04K6MV5W1K/p1763034072958419?thread_ts=1762937203.511629&cid=C04K6MV5W1K
187190
...(alternates?.generic ? { '': alternates?.generic } : {}),
188191
},
189192
},

0 commit comments

Comments
 (0)