Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: disable console.log in production

thecodrr0cfa8b382ccf
diff --git a/apps/web/src/index.js b/apps/web/src/index.js
index 8387768b2..cb0afaf81 100644
--- a/apps/web/src/index.js
+++ b/apps/web/src/index.js
@@ -12,6 +12,10 @@ import App from "./App";
import { MotionConfig, AnimationFeature, GesturesFeature } from "framer-motion";
import Splash from "./views/splash";
+if (process.env.NODE_ENV === "production") {
+ console.log = () => {};
+}
+
// Sentry.init({
// dsn:
// "https://[email protected]/5520885",