From 189dc4137a6b63e4fea8a951227db07b885effd0 Mon Sep 17 00:00:00 2001 From: feruzm Date: Tue, 10 Dec 2024 12:31:46 +0530 Subject: [PATCH] move to header --- next.config.js | 4 ++-- src/app/layout.tsx | 2 ++ src/features/monitoring/tracker.tsx | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index cd78347b9..64efa0baf 100644 --- a/next.config.js +++ b/next.config.js @@ -43,11 +43,11 @@ const config = { async rewrites() { return [ { - source: '/js/script.js', + source: '/pl/js/script.js', destination: 'https://pl.ecency.com/js/script.js' }, { - source: '/api/event', // Or '/api/event/' if you have `trailingSlash: true` in this config + source: '/pl/api/event', destination: 'https://pl.ecency.com/api/event' }, { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3c71a8539..b28d7077d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,12 +4,14 @@ import { HiringConsoleLog } from "@/app/_components"; import { cookies } from "next/headers"; import { Theme } from "@/enums"; import { BannerManager } from "@/features/banners"; +import React from "react"; export default async function RootLayout({ children }: { children: React.ReactNode }) { const theme = (await cookies()).get("theme")?.value; return ( + diff --git a/src/features/monitoring/tracker.tsx b/src/features/monitoring/tracker.tsx index 928f864a5..76de1dd23 100644 --- a/src/features/monitoring/tracker.tsx +++ b/src/features/monitoring/tracker.tsx @@ -7,7 +7,6 @@ export function Tracker() { const isMounted = useMountedState(); return isMounted() ? ( <> - ) : ( <>