/** * Map page — server component shell for the interactive map. * Loads Leaflet CSS, renders the MapView client component. */ import { getConfig } from '@/lib/config'; import { notFound } from 'next/navigation'; import { MapView } from '@/components/MapView'; import { BackLink } from '@/components/BackLink'; import type { Metadata } from 'next'; import './map.css'; export const dynamic = 'force-dynamic'; export const metadata: Metadata = { title: 'Map', }; export default function MapPage() { const config = getConfig(); if (!config.map) { notFound(); } const enabledSubpages = config.subpages.filter((sp) => sp.enabled !== false); const collectionCount = enabledSubpages.length; const albumCount = enabledSubpages.reduce((sum, sp) => sum + sp.albumIds.length, 0) + config.standaloneAlbums.length; return ( <> {/* Leaflet CSS from CDN */} {}
Where the photos were taken