permanentRedirect
Terminate the current rendering path and redirect to a permanent destination. In an ordinary HTTP context the method-preserving status is 308; a Server Action uses 303, and an already-streaming response can use a client-side redirect mechanism. Treat permanent redirects as a migration decision; use a fixed trusted target and keep the call outside broad catch blocks. Example context: Next.js 16.x documentation lane; illustrative snippet or file tree, not executed. Exact candidate patch 16.4.6 remains unverified. Expected behavior / verification: Place in app/old-catalog/page.tsx. Inspect status and Location before following redirects in a non-streamed request. Test the final page separately; do not apply permanent redirects to transient session failures.
Formal Syntax & Structure
permanentRedirect(path, type?)Working Example
import { permanentRedirect } from 'next/navigation';export default function OldCatalog() { permanentRedirect('/catalog'); }