🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update ReactScan component to enable scanning only in development mode for improved performance in production.
Bill Yangcea524193eae
diff --git a/client/src/app/ReactScan.tsx b/client/src/app/ReactScan.tsxindex 23b9dc43c..ab9307b9c 100644--- a/client/src/app/ReactScan.tsx+++ b/client/src/app/ReactScan.tsx@@ -6,7 +6,7 @@ import { JSX, useEffect } from "react";export function ReactScan(): JSX.Element {useEffect(() => {scan({- enabled: true,+ enabled: process.env.NODE_ENV === "development",});}, []);