This commit is contained in:
Your Name committed 2026-06-20 18:57:24 -04:00
1 parent f7aa4d099f
commit ab3e53c4da
33 files changed
+290 -69

No files matched your search

+6
View File
@@ -1,4 +1,5 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import '../globals.css';
import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';
@@ -6,6 +7,7 @@ import ClientProviders from '@/components/ClientProviders';
import { API_BASE } from '@/lib/api';
import type { MegaMenuPayload } from '@/components/navigation/menuTypes';
import type { MenuItem, StoreSettings } from '@homaroma/types';
import { isSupportedLocale } from '@/lib/locales';
export const metadata: Metadata = {
title: 'HomAroma',
@@ -82,6 +84,10 @@ export default async function RootLayout({
}) {
const { lang } = await params;
if (!isSupportedLocale(lang)) {
notFound();
}
const [categories, initialMenu, footerMenus, settings] = await Promise.all([
getCategories(lang),
getMegaMenu(lang),