Skip to content

Commit 00b0d66

Browse files
committed
fix(frontend): dynamically import ThreatGlobe with ssr disabled to fix next build
1 parent 3a8cb84 commit 00b0d66

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/components/Dashboard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React, { useEffect, useState } from 'react';
22
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts';
33
import { AlertCircle, Shield, Activity } from 'lucide-react';
4-
import ThreatGlobe from './ThreatGlobe';
4+
import dynamic from 'next/dynamic';
5+
6+
const ThreatGlobe = dynamic(() => import('./ThreatGlobe'), { ssr: false });
57

68
interface Log {
79
id: number;

0 commit comments

Comments
 (0)