feat(seo): crawlable show links, intercepted preview modal, real 404s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
nerandClaude Fable 5 committed 2026-08-07 16:33:59 +03:00
1 parent 919dcf9a42
commit 25a5d535a4
21 files changed
+231 -127

No files matched your search

+2 -4
View File
@@ -1,7 +1,7 @@
import { FC } from 'react';
import { dehydrate, HydrationBoundary } from '@tanstack/react-query';
import { Metadata } from 'next';
import { redirect } from 'next/navigation';
import { notFound } from 'next/navigation';
import Person from '@/components/Person';
import personQuery from '@/data/queries/person';
@@ -32,15 +32,13 @@ export const generateMetadata = async ({ params: { id } }: Props): Promise<Metad
}
};
} catch (_) {
return { title: TITLE };
return notFound();
}
};
const PersonPage: FC<Props> = async ({ params: { id } }) => {
const queryClient = getQueryClient();
if (!id) return redirect('/');
queryClient.prefetchQuery(personQuery({ personId: id }));
return (