From 4a4cf71ca34115ac684c88e6c388c10ceb0925bc Mon Sep 17 00:00:00 2001 From: xiften <108333567+not-ani@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:48:00 -0600 Subject: [PATCH] fix(nextjs): remove unused console.log statements --- apps/nextjs/next.config.js | 5 +++++ .../(dashboard)/project/[id]/(root)/_components/sidebar.tsx | 1 - apps/nextjs/src/app/(home)/page.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/nextjs/next.config.js b/apps/nextjs/next.config.js index 630b2b4..2f7b765 100644 --- a/apps/nextjs/next.config.js +++ b/apps/nextjs/next.config.js @@ -7,6 +7,11 @@ createJiti(fileURLToPath(import.meta.url))("./src/env"); /** @type {import("next").NextConfig} */ const config = { reactStrictMode: true, + compiler: { + removeConsole: { + exclude: ["error"], + }, + }, images: { remotePatterns: [ { diff --git a/apps/nextjs/src/app/(dashboard)/project/[id]/(root)/_components/sidebar.tsx b/apps/nextjs/src/app/(dashboard)/project/[id]/(root)/_components/sidebar.tsx index e898e5b..703e503 100644 --- a/apps/nextjs/src/app/(dashboard)/project/[id]/(root)/_components/sidebar.tsx +++ b/apps/nextjs/src/app/(dashboard)/project/[id]/(root)/_components/sidebar.tsx @@ -10,7 +10,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@amaxa/ui/tooltip"; export const Sidebar = memo(({ id, name }: { id: string; name: string }) => { const pathname = usePathname(); - console.log(pathname); return (