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

@@ -38,6 +38,8 @@ export default function GlobalError({
};
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="mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-destructive/10">
@@ -100,5 +102,7 @@ export default function GlobalError({
</div>
</div>
</div>
</body>
</html>
);
}