- Move all App Router pages under [locale] dynamic segment - Update layout to handle locale params and server-side version fetch - Remove duplicate pages from root app directory - Add generateStaticParams for static generation of locale routes - Update Header component for locale-aware navigation - Update about page to use next-intl hooks 🤖 Generated with Claude Code https://claude.ai/code Co-Authored-By: Claude <noreply@anthropic.com>
6 lines
No EOL
176 B
TypeScript
6 lines
No EOL
176 B
TypeScript
import { redirect } from 'next/navigation'
|
|
|
|
export default function HomePage() {
|
|
// In the App Router, we can use redirect directly in a Server Component
|
|
redirect('/new')
|
|
} |