fix: disable analytics script when environment is not production
This commit is contained in:
parent
8b8c9aaa4b
commit
6ae3fd2aef
1 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,9 @@ export default function RootLayout({
|
|||
return (
|
||||
<html lang="en">
|
||||
<body className={`${lexend.className} antialiased flex flex-col items-center min-h-screen`}>
|
||||
{process.env.NODE_ENV == "production" && (
|
||||
<Script defer src="https://analytics.trafficlunar.net/script.js" data-website-id="bc530384-9b7d-471a-b2e3-f9859da50c24" />
|
||||
)}
|
||||
|
||||
<Providers>
|
||||
<Header />
|
||||
|
|
|
|||
Loading…
Reference in a new issue