Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Load ReactJson dynamically

Tomas Valenta1788c45e590b
diff --git a/components/AgentFunctions.tsx b/components/AgentFunctions.tsx
index 733fe2bd1..51b42db84 100644
--- a/components/AgentFunctions.tsx
+++ b/components/AgentFunctions.tsx
@@ -5,9 +5,8 @@ import clsx from 'clsx'
import {
ChevronRight,
} from 'lucide-react'
-import ReactJson from 'react-json-view'
-
-
+import dynamic from 'next/dynamic'
+const ReactJson = dynamic(import('react-json-view'), { ssr: false })
const theme = {
scheme: 'monokai',