import type { MetadataRoute } from "next"; const BASE_URL = process.env["BETTER_AUTH_URL"] ?? "http://localhost:3000"; export default function sitemap(): MetadataRoute.Sitemap { const routes = ["", "/features", "/pricing", "/about", "/privacy", "/terms", "/contact"]; return routes.map((route) => ({ url: `${BASE_URL}${route}`, lastModified: new Date(), changeFrequency: route === "" ? "weekly" : "monthly", priority: route === "" ? 1 : 0.5, })); }