diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/app/[handle]/[collection]/[rkey]/page.tsx b/src/app/[handle]/[collection]/[rkey]/page.tsx index 1cb274c..7f7cfb5 100644 --- a/src/app/[handle]/[collection]/[rkey]/page.tsx +++ b/src/app/[handle]/[collection]/[rkey]/page.tsx @@ -268,23 +268,27 @@ async function RecordContent({ handle, collection, rkey }: { handle: string; col if (parsedData.error) { return ( -
+ <>
-

Error

-

{parsedData.error}

-
+
+

Error

+

{parsedData.error}

+
+ ); } const resolvedDid = await resolveHandle(handle); - + if (!resolvedDid) { return ( -
+ <>
-

Error

-

Could not resolve handle: {handle}

-
+
+

Error

+

Could not resolve handle: {handle}

+
+ ); } @@ -296,11 +300,13 @@ async function RecordContent({ handle, collection, rkey }: { handle: string; col if (parsedData.type === 'unknown') { return ( -
+ <>
-

Error

-

Invalid or unsupported URI

-
+
+

Error

+

Invalid or unsupported URI

+
+ ); } @@ -352,21 +358,21 @@ async function RecordContent({ handle, collection, rkey }: { handle: string; col const postAtUri = post?.uri || ''; return ( -
+ <>
+
+ {/* AT-URI alternate link, mirroring Bluesky's bskyweb template. + React 19 hoists this to . */} + {postAtUri && } - {/* AT-URI alternate link, mirroring Bluesky's bskyweb template. - React 19 hoists this to . */} - {postAtUri && } + {jsonLd && ( +