(r: string, locales: Array<string>)
| 22 | /^https?:\/\//.test(r) ? r : `${baseUrlAndPath}/${l}/${r}`; |
| 23 | |
| 24 | const getAlternatePaths = (r: string, locales: Array<string>) => |
| 25 | Object.fromEntries(locales.map(l => [l, getFullPath(r, l)])); |
| 26 | |
| 27 | // This allows us to generate a `sitemap.xml` file dynamically based on the needs of the Node.js Website |
| 28 | const sitemap = async (): Promise<MetadataRoute.Sitemap> => { |
no test coverage detected