Files
NightSpire/web-next/app/[locale]/[...rest]/page.tsx
T
Inna 4b78aa847a web-next: página 404 temática (not-found)
Añade una 404 con el markup del tema (main-page > middle-content >
body-content > title-content + body-box-content justified), dentro del
layout de [locale] (cabecera/vídeo/pie). Como el layout raíz es un segmento
dinámico ([locale]), se usa el patrón de next-intl: `[locale]/not-found.tsx`
+ catch-all `[locale]/[...rest]/page.tsx` que dispara notFound(). Bilingüe
(claves NotFound.title/message en es/en). Devuelve HTTP 404; las rutas
conocidas siguen 200.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 11:22:06 +00:00

10 lines
270 B
TypeScript

import { notFound } from 'next/navigation'
/**
* Catch-all de rutas inexistentes bajo un idioma: dispara notFound() para que
* se renderice la 404 temática (`[locale]/not-found.tsx`) dentro del layout.
*/
export default function CatchAllNotFound() {
notFound()
}