import { MetadataRoute } from 'next';

export default function sitemap(): MetadataRoute.Sitemap {
  const baseUrl = 'https://puffinoffset.com';

  // All static routes
  const routes = [
    '',
    '/about',
    '/how-it-works',
    '/contact',
    '/calculator',
  ].map((route) => ({
    url: `${baseUrl}${route}`,
    lastModified: new Date(),
    changeFrequency: 'weekly' as const,
    priority: route === '' ? 1 : route === '/calculator' ? 0.9 : 0.8,
  }));

  return routes;
}
