From 183e92af7d51ab571b3e291fbd8474357122a3e2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 6 Apr 2024 18:34:43 +0100 Subject: [PATCH] analytics only in production --- app/layout.tsx | 14 ++++++++------ constants.ts | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 94afe99..7c6de7b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,7 +2,7 @@ import type { Metadata } from 'next' import '@/styles/globals.css' import '@/styles/loading-ui.css' import Script from 'next/script' -import { title, description, font, liveUrl } from '@/constants' +import { title, description, font, liveUrl, isProduction } from '@/constants' export const metadata: Metadata = { title, @@ -19,11 +19,13 @@ export default function RootLayout({ return ( -