fix: add compiler configuration to next.config for console removal
This commit is contained in:
parent
9f05c19494
commit
5a6f23b4e8
2 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ import { env } from "node:process";
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: env.NODE_ENV === "production" ? "standalone" : undefined, // This is for docker builds
|
output: env.NODE_ENV === "production" ? "standalone" : undefined, // This is for docker builds
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
compiler: {
|
||||||
|
removeConsole: false,
|
||||||
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
locales: ["it", "en"],
|
locales: ["it", "en"],
|
||||||
defaultLocale: "it",
|
defaultLocale: "it",
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ import {
|
||||||
MultiSelect,
|
MultiSelect,
|
||||||
type ListOption,
|
type ListOption,
|
||||||
} from "~/components/custom_ui/multiselect";
|
} from "~/components/custom_ui/multiselect";
|
||||||
import { DevTool } from "@hookform/devtools";
|
|
||||||
import { Switch } from "~/components/ui/switch";
|
import { Switch } from "~/components/ui/switch";
|
||||||
import { filteredCaratteristiche } from "~/hooks/schedaAnnuncioUtils";
|
import { filteredCaratteristiche } from "~/hooks/schedaAnnuncioUtils";
|
||||||
import { Button } from "~/components/ui/button";
|
import { Button } from "~/components/ui/button";
|
||||||
|
|
@ -189,7 +188,6 @@ export const AnnuncioEditForm = ({ data }: { data: Annunci }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<DevTool control={form.control} />
|
|
||||||
<form
|
<form
|
||||||
onSubmit={form.handleSubmit(onSubmit)}
|
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"
|
className="mt-3 grid flex-1 items-start gap-4 p-2 sm:px-4 sm:py-0 md:gap-8"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue