fix: resolve lint errors in layout and route by updating analytics interface
Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Successful in 1m22s
Build & Deploy / 🏗️ Build (push) Failing after 1m59s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s

This commit is contained in:
2026-02-10 00:01:31 +01:00
parent 7734440b90
commit 8f39ec3d35
4 changed files with 27 additions and 4 deletions

View File

@@ -118,8 +118,8 @@ export default async function RootLayout({
const { headers } = await import("next/headers");
const requestHeaders = await headers();
if ("setServerContext" in serverServices.analytics) {
(serverServices.analytics as any).setServerContext({
if (serverServices.analytics.setServerContext) {
serverServices.analytics.setServerContext({
userAgent: requestHeaders.get("user-agent") || undefined,
language:
requestHeaders.get("accept-language")?.split(",")[0] || undefined,