refactor(web): consolidate i18n routes — remove non-locale route duplication

Remove duplicate root-level route groups ((public)/, (auth)/, (dashboard)/,
(admin)/, auth/) that shadowed the [locale]/ i18n-aware versions. All routes
now live exclusively under [locale]/ with next-intl middleware handling locale
detection and redirect.

- Root layout.tsx → pass-through (delegates html/body to [locale]/layout.tsx)
- [locale]/layout.tsx now imports globals.css
- Root error.tsx, not-found.tsx get html wrapper for safety fallback
- Remove redundant root loading.tsx
- 38 duplicate route files removed

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-09 09:12:37 +07:00
parent e6d38c796f
commit 628150b7d8
43 changed files with 127 additions and 7213 deletions

View File

@@ -2,6 +2,8 @@ import Link from 'next/link';
export default function NotFound() {
return (
<html lang="vi">
<body>
<div className="flex min-h-screen flex-col items-center justify-center bg-background px-4">
<div className="mx-auto max-w-md text-center">
<div className="text-8xl font-bold text-primary/20">404</div>
@@ -27,5 +29,7 @@ export default function NotFound() {
</div>
</div>
</div>
</body>
</html>
);
}