This commit is contained in:
2026-05-27 20:35:54 +02:00
parent 26713b13b1
commit 9d80dc8875
20 changed files with 979 additions and 175 deletions

View File

@@ -0,0 +1,21 @@
import { notFound, permanentRedirect } from 'next/navigation'
import { getGermanSeoPageBySlug, germanSeoPageSlugs } from '@/lib/seoPages'
type GermanSeoRouteProps = {
params: Promise<{ slug: string }>
}
export function generateStaticParams() {
return germanSeoPageSlugs.map((slug) => ({ slug }))
}
export default async function GermanSeoRoute({ params }: GermanSeoRouteProps) {
const { slug } = await params
const profile = getGermanSeoPageBySlug(slug)
if (!profile) {
notFound()
}
permanentRedirect(`/${slug}`)
}

View File

@@ -0,0 +1,5 @@
import { permanentRedirect } from 'next/navigation'
export default function GermanHomeRedirect() {
permanentRedirect('/')
}