From 44091fc72aa91615ca20221294f0be3f5d9f1dc5 Mon Sep 17 00:00:00 2001 From: Unchained Date: Tue, 31 Mar 2026 00:50:33 +0200 Subject: [PATCH] fix: inline Rybbit config to avoid client directive in server component --- src/app/[locale]/layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 14932f7..972020b 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -4,7 +4,10 @@ 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 { RYBBIT_HOST, RYBBIT_SITE_ID } from "@/lib/services/RybbitService"; + +// Rybbit configuration - defined inline to avoid client directive issues +const RYBBIT_HOST = "https://rybbit.nodecrew.me"; +const RYBBIT_SITE_ID = "1"; const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://dev.manoonoils.com";