From 16ec50a6eea7f7925631dbb78e100977ca27d0f6 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 27 Oct 2025 16:43:52 -0700 Subject: [PATCH] add alaytics to saas --- src/app/layout.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5cd083b8..144e7850 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -18,6 +18,7 @@ import { NextIntlClientProvider } from "next-intl"; import { getLocale } from "next-intl/server"; import { Toaster } from "@app/components/ui/toaster"; import { build } from "@server/build"; +import Script from "next/script"; export const metadata: Metadata = { title: `Dashboard - ${process.env.BRANDING_APP_NAME || "Pangolin"}`, @@ -62,9 +63,9 @@ export default async function RootLayout({ if (build === "enterprise") { const licenseStatusRes = await cache( async () => - await priv.get>( - "/license/status" - ) + await priv.get>( + "/license/status" + ) )(); licenseStatus = licenseStatusRes.data.data; } else if (build === "saas") { @@ -84,6 +85,13 @@ export default async function RootLayout({ return ( + {build === "saas" && ( +