MCPcopy Index your code
hub / github.com/simstudioai/sim / sitemap

Function sitemap

apps/sim/app/sitemap.ts:16–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 * by the catalog generator in `scripts/generate-docs.ts`.
15 */
16export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
17 const baseUrl = SITE_URL
18 const posts = await getAllPostMeta()
19
20 const latestPostDate =
21 posts.length > 0
22 ? new Date(Math.max(...posts.map((p) => new Date(p.updated ?? p.date).getTime())))
23 : undefined
24
25 const modelTimes = MODEL_PROVIDERS_WITH_CATALOGS.flatMap((provider) =>
26 provider.models.map((model) => new Date(model.pricing.updatedAt).getTime())
27 )
28 const latestModelDate = modelTimes.length > 0 ? new Date(Math.max(...modelTimes)) : undefined
29
30 const integrationsUpdatedAt = new Date(`${INTEGRATIONS_UPDATED_AT}T00:00:00Z`)
31
32 const staticPages: MetadataRoute.Sitemap = [
33 {
34 url: baseUrl,
35 },
36 {
37 url: `${baseUrl}/workflows`,
38 },
39 {
40 url: `${baseUrl}/pricing`,
41 },
42 {
43 url: `${baseUrl}/demo`,
44 },
45 {
46 url: `${baseUrl}/contact`,
47 },
48 {
49 url: `${baseUrl}/careers`,
50 },
51 {
52 url: `${baseUrl}/enterprise`,
53 },
54 {
55 url: `${baseUrl}/solutions/compliance`,
56 },
57 {
58 url: `${baseUrl}/solutions/engineering`,
59 },
60 {
61 url: `${baseUrl}/solutions/finance`,
62 },
63 {
64 url: `${baseUrl}/solutions/hr`,
65 },
66 {
67 url: `${baseUrl}/solutions/it`,
68 },
69 {
70 url: `${baseUrl}/blog`,
71 lastModified: latestPostDate,
72 },
73 {

Callers

nothing calls this directly

Calls 3

getAllPostMetaFunction · 0.90
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected