feat(seo): heading structure + SSR person profile
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9b64f137f1
commit
cd34f4eb5f
9 files changed
+30
-7
No files matched your search
@@ -41,7 +41,11 @@ export const generateMetadata = async ({ params: { id } }: Props): Promise<Metad
|
||||
const PersonPage: FC<Props> = async ({ params: { id } }) => {
|
||||
const queryClient = getQueryClient();
|
||||
|
||||
queryClient.prefetchQuery(personQuery({ personId: id }));
|
||||
try {
|
||||
await queryClient.fetchQuery(personQuery({ personId: id }));
|
||||
} catch (_) {
|
||||
return notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
|
||||
Reference in new issue
Block a user