diff --git a/next.config.ts b/next.config.ts index 63b7117..7526f98 100644 --- a/next.config.ts +++ b/next.config.ts @@ -69,7 +69,7 @@ const nextConfig: NextConfig = { ], }, experimental: { - optimizePackageImports: ["lucide-react", "framer-motion"], + optimizePackageImports: ["lucide-react", "framer-motion", "clsx", "motion"], }, }; diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index fdd8c66..a80fb97 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -2,10 +2,9 @@ import { Metadata } from "next"; import { NextIntlClientProvider } from "next-intl"; import { getMessages, setRequestLocale } from "next-intl/server"; import { SUPPORTED_LOCALES, DEFAULT_LOCALE, isValidLocale } from "@/lib/i18n/locales"; -import { OpenPanelComponent } from "@openpanel/nextjs"; import Script from "next/script"; +import AnalyticsProvider from "@/components/providers/AnalyticsProvider"; -// Rybbit configuration const RYBBIT_SITE_ID = process.env.NEXT_PUBLIC_RYBBIT_SITE_ID || "1"; const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://manoonoils.com"; @@ -50,13 +49,7 @@ export default async function LocaleLayout({ return ( <> - +