page.tsx 255 B

12345678910
  1. import { redirect } from 'next/navigation';
  2. type Props = {
  3. params: Promise<{ sid: string }>;
  4. };
  5. export default async function FeedUserRedirectPage({ params }: Props) {
  6. const { sid } = await params;
  7. redirect(`/user/${encodeURIComponent(sid)}/feed`);
  8. }