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 (
- + {isProduction ? ( + + ) : null} {children} diff --git a/constants.ts b/constants.ts index e08976e..8b069e9 100644 --- a/constants.ts +++ b/constants.ts @@ -21,3 +21,5 @@ export const font = Hanken_Grotesk({ subsets: ['latin'], variable: '--font-hanken-grotesk' }) + +export const isProduction = process.env.NODE_ENV === 'production'