cms.c2sgmbh/src/app/(frontend)/page.tsx
Martin Porwoll 51c340e9e7 feat: add i18n, SEO, and frontend infrastructure
Localization:
- Add middleware for locale detection/routing
- Add [locale] dynamic route structure
- Add i18n utility library (DE/EN support)

SEO & Discovery:
- Add robots.ts for search engine directives
- Add sitemap.ts for XML sitemap generation
- Add structuredData.ts for JSON-LD schemas

Utilities:
- Add search.ts for full-text search functionality
- Add tenantAccess.ts for multi-tenant access control
- Add envValidation.ts for environment validation

Frontend:
- Update layout.tsx with locale support
- Update page.tsx for localized content
- Add API routes for frontend functionality
- Add instrumentation.ts for monitoring

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 08:19:35 +00:00

8 lines
299 B
TypeScript

import { redirect } from 'next/navigation'
import { defaultLocale } from '@/lib/i18n'
// This page catches requests to / and redirects to the default locale
// The middleware should normally handle this, but this is a fallback
export default function RootPage() {
redirect(`/${defaultLocale}`)
}