security/codeql-dependabot-gitleaks
| 1 | import type { MetadataRoute } from "next" |
| 2 | import { config } from "../config" |
| 3 | import { sitemapUrls } from "../generated/sitemap-urls.mjs" |
| 4 | import { basePathUrl } from "../utils/base-path-url" |
| 5 | |
| 6 | export default function sitemap(): MetadataRoute.Sitemap { |
| 7 | return sitemapUrls.map((filePath) => ({ |
| 8 | url: `${config.baseUrl}${basePathUrl(filePath)}`, |
| 9 | })) |
| 10 | } |