Add simple analytic

This commit is contained in:
KMKoushik
2024-05-21 06:41:15 +10:00
parent d2a997a34b
commit 052c29a515

View File

@@ -2,6 +2,7 @@ import "@unsend/ui/styles/globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { ThemeProvider } from "@unsend/ui";
import Script from "next/script";
const inter = Inter({ subsets: ["latin"] });
@@ -34,6 +35,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
{process.env.NODE_ENV === "production" && (
<Script src="https://scripts.simpleanalyticscdn.com/latest.js" />
)}
<body className={inter.className}>
<ThemeProvider attribute="class" defaultTheme="dark">
{children}