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