Files
recipe-app/_archive/frontend/app/recipes/[id]/edit/page.tsx
T
Nils-Johan Gynther ffe50e5151
Test Suite / test (24.15.0) (push) Has been cancelled
feat: add TypeScript definitions for next-auth session with accessToken and user details
2026-05-04 20:09:21 +02:00

11 lines
234 B
TypeScript

import { redirect } from 'next/navigation';
interface Props {
params: Promise<{ id: string }>;
}
export default async function EditRecipeRedirect({ params }: Props) {
const { id } = await params;
redirect(`/recipes/${id}`);
}