Skip to content

Commit

Permalink
fix metadata for landing
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh committed Nov 8, 2024
1 parent 5305d02 commit 5e2eb4a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/views/open-api-docs-view-v2/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,16 +337,21 @@ export async function generateStaticProps({
}
} else {
const landingProps = {
metadata: {
title: schemaData.info.title,
},
heading: schemaData.info.title,
badgeText: targetVersion.releaseStage,
serviceProductSlug: theme,
statusIndicatorConfig,
descriptionMdx: await serialize(schemaData.info.description),
schemaFileString: schemaFileString,
}
return { props: stripUndefinedProperties({ ...sharedProps, landingProps }) }
return {
props: stripUndefinedProperties({
...sharedProps,
metadata: {
title: schemaData.info.title,
},
landingProps,
}),
}
}
}

0 comments on commit 5e2eb4a

Please sign in to comment.