Skip to content

Commit ee5cb8c

Browse files
committed
CR
1 parent 1807b93 commit ee5cb8c

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/app/sitemap.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
import type { MetadataRoute } from "next";
2-
import { getAllRFSData } from "@/app/agents/utils/get-rfs-data";
3-
import { PATHS } from "@/constants/paths";
4-
import { BASE_URL } from "@/constants/site-metadata";
1+
import type { MetadataRoute } from 'next'
2+
3+
import { getAllRFSData } from '@/app/agents/utils/get-rfs-data'
4+
import { PATHS } from '@/constants/paths'
5+
import { BASE_URL } from '@/constants/site-metadata'
56

67
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
7-
const lastModified = new Date();
8+
const lastModified = new Date()
89

910
const staticRoutes = Object.values(PATHS).map(({ path }) => ({
1011
url: `${BASE_URL}${path}`,
1112
lastModified,
12-
changeFrequency: "weekly" as const,
13-
priority: path === "/" ? 1 : 0.8,
14-
}));
13+
changeFrequency: 'weekly' as const,
14+
priority: path === '/' ? 1 : 0.8,
15+
}))
1516

16-
const allRFSData = await getAllRFSData();
17+
const allRFSData = await getAllRFSData()
1718
const agentRoutes = allRFSData.map(({ slug }) => ({
1819
url: `${BASE_URL}${PATHS.AGENTS.path}/${slug}`,
1920
lastModified,
20-
changeFrequency: "weekly" as const,
21+
changeFrequency: 'weekly' as const,
2122
priority: 0.7,
22-
}));
23+
}))
2324

24-
return [...staticRoutes, ...agentRoutes];
25+
return [...staticRoutes, ...agentRoutes]
2526
}

0 commit comments

Comments
 (0)