34 lines
755 B
TypeScript
34 lines
755 B
TypeScript
import { MetadataRoute } from "next";
|
|
import { servicePages, siteUrl } from "@/lib/site-content";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const now = new Date();
|
|
|
|
return [
|
|
{
|
|
url: siteUrl,
|
|
lastModified: now,
|
|
changeFrequency: "monthly",
|
|
priority: 1.0,
|
|
},
|
|
{
|
|
url: `${siteUrl}/servicos`,
|
|
lastModified: now,
|
|
changeFrequency: "monthly",
|
|
priority: 0.9,
|
|
},
|
|
{
|
|
url: `${siteUrl}/cases`,
|
|
lastModified: now,
|
|
changeFrequency: "monthly",
|
|
priority: 0.9,
|
|
},
|
|
...servicePages.map((service) => ({
|
|
url: `${siteUrl}/servicos/${service.slug}`,
|
|
lastModified: now,
|
|
changeFrequency: "monthly" as const,
|
|
priority: 0.8,
|
|
})),
|
|
];
|
|
}
|