import Link from 'next/link'; import { HistoryChart } from '@/components/charts/HistoryChart'; import { Gauge } from '@/components/gauge/Gauge'; import { Clock } from '@/components/home/Clock'; import { ComponentRows } from '@/components/home/ComponentRows'; import { Fronts } from '@/components/home/Fronts'; import { IncidentsList } from '@/components/home/IncidentsList'; import { ProbeStrip } from '@/components/home/ProbeStrip'; import { RegionsTable } from '@/components/home/RegionsTable'; import { Ticker } from '@/components/home/Ticker'; import { MapIsland } from '@/components/map/MapIsland'; import { Section } from '@/components/ui/primitives'; import { apiTry } from '@/lib/api'; import { TAGLINE } from '@/lib/site'; import type { Country, Front, GlobalPressure, History, IncidentList, Latency, Probe, Region, Ticker as TickerT } from '@/lib/types'; export const dynamic = 'force-dynamic'; export default async function HomePage() { const [global, ticker, regions, countries, fronts, incidents, probes, history, latency] = await Promise.all([ apiTry('/api/v1/pressure/global'), apiTry('/api/v1/ticker'), apiTry<{ regions: Region[] }>('/api/v1/pressure/regions'), apiTry<{ countries: Country[] }>('/api/v1/pressure/countries'), apiTry<{ fronts: Front[] }>('/api/v1/fronts'), apiTry('/api/v1/incidents?status=active&limit=20'), apiTry<{ probes: Probe[] }>('/api/v1/probes'), apiTry('/api/v1/pressure/history?scope_type=global&range=24h'), apiTry('/api/v1/latency'), ]); return (
{/* ---- above the fold */} ); }