import { RouteManager } from './RouteManager'; interface Group { id: string; name: string; platform: string; } interface Route { id: string; sourceGroupId: string; targetGroupId: string; sourceGroup: { name: string }; targetGroup: { name: string }; } async function fetchJson(url: string): Promise { try { const res = await fetch(url, { cache: 'no-store' }); if (!res.ok) return null; return res.json(); } catch { return null; } } export default async function GroupsPage() { const apiUrl = process.env.API_URL ?? 'http://localhost:3001'; const [groups, routes] = await Promise.all([ fetchJson(`${apiUrl}/groups`), fetchJson(`${apiUrl}/routes`), ]); return (

Groups & Routes

); }