swithc off console log in prod

This commit is contained in:
Ishaan Jaff 2024-07-30 13:02:55 -07:00
parent 36dca6bcce
commit 7f847f194d
7 changed files with 21 additions and 0 deletions

View file

@ -91,6 +91,9 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
>>(null);
const isLocal = process.env.NODE_ENV === "development";
if (isLocal === true) {
console.log = function() {};
}
const [baseUrl, setBaseUrl] = useState(
isLocal ? "http://localhost:4000" : ""
);