Remove the per-route 'export const instant = false' opt-outs now that the root layout carries the single Cache Components opt-out. Child pages inherit the opt-out, so admin/mod/radio leaf pages that only access cached or DB data stay instant while runtime-dependent pages remain dynamic. Update the staff-smoke contract test to assert the root-layout contract.
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
/**
|
|
* Legacy URL — the canonical edit UI lives at /admin/users/edit/[id]
|
|
* and is gated by PERMS.USERS_EDIT.
|
|
*/
|
|
export default async function AdminUserEditRedirect({
|
|
params,
|
|
}: {
|
|
params: Promise<{ id: string }>;
|
|
}) {
|
|
const { id } = await params;
|
|
redirect(`/admin/users/edit/${id}`);
|
|
}
|