mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
swithc off console log in prod
This commit is contained in:
parent
50222d808b
commit
c2289afee8
7 changed files with 21 additions and 0 deletions
|
@ -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" : ""
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue