fix: add compiler configuration to next.config for console removal

This commit is contained in:
Marco Pedone 2025-08-28 13:31:03 +02:00
parent 9f05c19494
commit 5a6f23b4e8
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,9 @@ import { env } from "node:process";
const nextConfig = {
output: env.NODE_ENV === "production" ? "standalone" : undefined, // This is for docker builds
reactStrictMode: true,
compiler: {
removeConsole: false,
},
i18n: {
locales: ["it", "en"],
defaultLocale: "it",

View file

@ -29,7 +29,6 @@ import {
MultiSelect,
type ListOption,
} from "~/components/custom_ui/multiselect";
import { DevTool } from "@hookform/devtools";
import { Switch } from "~/components/ui/switch";
import { filteredCaratteristiche } from "~/hooks/schedaAnnuncioUtils";
import { Button } from "~/components/ui/button";
@ -189,7 +188,6 @@ export const AnnuncioEditForm = ({ data }: { data: Annunci }) => {
return (
<>
<Form {...form}>
<DevTool control={form.control} />
<form
onSubmit={form.handleSubmit(onSubmit)}
className="mt-3 grid flex-1 items-start gap-4 p-2 sm:px-4 sm:py-0 md:gap-8"