import type { Metadata } from 'next' import { changelogEntriesQuery, roadmapItemsQuery } from '@/lib/sanity' import { sanityFetch } from '@/lib/sanityFetch' import { ChangelogTabs } from '@/components/ChangelogTabs' import type { ChangelogEntry, RoadmapItemData } from '@/types/changelog' export const revalidate = 60 export const metadata: Metadata = { title: "What's New — Battl Builders", description: 'Release notes, upcoming features, and product updates from Battl Builders.', } export default async function ChangelogPage() { let entries: ChangelogEntry[] = [] let roadmapItems: RoadmapItemData[] = [] try { entries = await sanityFetch(changelogEntriesQuery) } catch (err) { console.error('[Changelog] entries fetch failed:', err) } try { roadmapItems = await sanityFetch(roadmapItemsQuery) } catch (err) { console.error('[Changelog] roadmap fetch failed:', err) } return (

Battl Builders

Updates

What we've shipped and what's coming next.

) }