import type {MetadataRoute} from "next";import {models,posts,tools} from "@/lib/tool-data";
export const dynamic = "force-static";
export default function sitemap():MetadataRoute.Sitemap{const base="https://nuvid.live";const staticRoutes=["","pricing","about-us","faqs","support","blog","tools","models","app/create","privacy-policy","terms-conditions","cookie-policy","refund-policy","dmca-policy","disclaimer"];return[...staticRoutes.map((route)=>({url:`${base}/${route}${route?"/":""}`,lastModified:new Date(),changeFrequency:"weekly" as const,priority:route===""?1:.7})),...tools.map(t=>({url:`${base}/tools/${t.slug}/`,lastModified:new Date(),changeFrequency:"monthly" as const,priority:.8})),...models.map(m=>({url:`${base}/models/${m.slug}/`,lastModified:new Date(),changeFrequency:"monthly" as const,priority:.6})),...posts.map(p=>({url:`${base}/blog/${p[0]}/`,lastModified:new Date(),changeFrequency:"monthly" as const,priority:.6}))]}
