nomadro/app/community/members/[id]/page.tsx
eric 9928c5185b Mount nav/book/community as native App Router routes in one Next process.
Replace reverse-proxy/iframe approach with @ebook/@community/@navmini imports under /nav /book /community so localhost:3000 serves all three products directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:49:16 -05:00

19 lines
680 B
TypeScript

import { Suspense } from "react";
import { notFound } from "next/navigation";
import { api } from "@community/lib/api";
import SiteShell from "@community/components/SiteShell";
import MemberProfileClient from "@community/components/MemberProfileClient";
export default async function MemberPage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
const profile = await api.getMemberProfile(id).catch(() => null);
if (!profile) notFound();
return (
<SiteShell showFooter>
<Suspense fallback={<div className="container dest-empty">…</div>}>
<MemberProfileClient profile={profile} />
</Suspense>
</SiteShell>
);
}