mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 18:34:13 +00:00
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>
8 lines
299 B
TypeScript
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}`)
|
|
}
|