import { MetadataRoute } from 'next'

export const dynamic = "force-static"

export default function sitemap(): MetadataRoute.Sitemap {
  const baseUrl = "https://dine360.vercel.app"

  return [
    // MAIN PAGES
    {
      url: `${baseUrl}/`,
      changeFrequency: "weekly",
      priority: 1,
    },
    {
      url: `${baseUrl}/features`,
      changeFrequency: "weekly",
      priority: 0.9,
    },
    {
      url: `${baseUrl}/restaurant-types`,
      changeFrequency: "weekly",
      priority: 0.9,
    },
     {
    url: `${baseUrl}/features/kds`,
    lastModified: new Date(),       changeFrequency: "monthly", 
    priority: 0.8,
  },

    // FEATURES SUB PAGES
    { url: `${baseUrl}/features/kds`, priority: 0.8 },
    { url: `${baseUrl}/features/table-reservation`, priority: 0.8 },
    { url: `${baseUrl}/features/crm`, priority: 0.8 },
    { url: `${baseUrl}/features/sales`, priority: 0.8 },
    { url: `${baseUrl}/features/inventory`, priority: 0.8 },
    { url: `${baseUrl}/features/purchase`, priority: 0.8 },
    { url: `${baseUrl}/features/uber-integration`, priority: 0.8 },
    { url: `${baseUrl}/features/invoicing`, priority: 0.8 },
    { url: `${baseUrl}/features/promotions`, priority: 0.8 },
    { url: `${baseUrl}/features/online-ordering`, priority: 0.8 },
    { url: `${baseUrl}/features/dashboard`, priority: 0.8 },
    { url: `${baseUrl}/features/multi-branch`, priority: 0.8 },
    { url: `${baseUrl}/features/team-communication`, priority: 0.8 },
    { url: `${baseUrl}/features/pos`, priority: 0.8 },

    // RESTAURANT TYPES (from your data :contentReference[oaicite:0]{index=0})
    { url: `${baseUrl}/restaurant-types/fine-dining`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/casual-dining`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/fast-casual`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/cloud-kitchen`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/family-style`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/fast-food`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/food-truck`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/cafe`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/buffet`, priority: 0.7 },
    { url: `${baseUrl}/restaurant-types/pub`, priority: 0.7 },

    // OTHER PAGES
    { url: `${baseUrl}/pricing`, priority: 0.8 },
    { url: `${baseUrl}/contact`, priority: 0.8 },
    { url: `${baseUrl}/about`, priority: 0.7 },
    { url: `${baseUrl}/blog`, priority: 0.7 },
    { url: `${baseUrl}/faq`, priority: 0.7 },
  ]
}