From 64e138248dc8f6999c8e32101d712344fb52ca23 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 14 Apr 2024 12:52:37 +0200 Subject: [PATCH] static rendering for front page again --- app/layout.tsx | 6 +---- app/page.tsx | 4 +-- .../components/MarketData/MarketData.tsx | 19 +++++--------- features/prices/components/Price/Price.tsx | 18 ++++++------- .../components/Price/PriceChange.module.css | 6 ++--- .../prices/components/Price/PriceChange.tsx | 17 ++++++++++++- features/prices/components/index.ts | 2 ++ features/prices/hooks/use-prices.tsx | 25 +++++++------------ features/prices/index.tsx | 2 +- features/strategies/components/Swap/Swap.tsx | 3 +-- middleware.ts | 11 -------- 11 files changed, 48 insertions(+), 65 deletions(-) create mode 100644 features/prices/components/index.ts delete mode 100644 middleware.ts 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 ? (