diff --git a/app/layout.tsx b/app/layout.tsx index e817f18..7c6de7b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -3,7 +3,6 @@ import '@/styles/globals.css' import '@/styles/loading-ui.css' import Script from 'next/script' import { title, description, font, liveUrl, isProduction } from '@/constants' -import { headers } from 'next/headers' export const metadata: Metadata = { title, @@ -17,11 +16,8 @@ export default function RootLayout({ }: Readonly<{ children: React.ReactNode }>) { - const headersList = headers() - const locale = headersList.get('x-locale') - return ( - + {isProduction ? (