Ready for 1.1.2-rc.1

This commit is contained in:
charlesgauthereau
2025-09-23 19:50:33 +02:00
parent 2d2453acf7
commit 54a233b207
2 changed files with 17 additions and 1 deletions
@@ -0,0 +1,15 @@
"use client";
import { useEffect } from "react";
export function ConsoleSilencer() {
useEffect(() => {
if (process.env.NODE_ENV === "production") {
for (const method of ["log", "debug", "info", "warn", "error"] as const) {
console[method] = () => {};
}
}
}, []);
return null;
}