Skip to content

Commit

Permalink
fix(nextjs): remove unused console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
not-ani committed Oct 23, 2024
1 parent 63f672a commit 4a4cf71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
<aside className="fixed inset-y-0 left-0 z-10 hidden w-14 flex-col border-r bg-muted/40 sm:flex">
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Suspense } from "react";
import React from "react";
import Image from "next/image";
import Link from "next/link";

Expand Down

0 comments on commit 4a4cf71

Please sign in to comment.