We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c9357 commit 914652cCopy full SHA for 914652c
src/generators/sitemap/index.mjs
@@ -45,23 +45,19 @@ export default {
45
};
46
});
47
48
- const mainPages = [
49
- {
50
- loc: new URL('/docs/latest/api/', BASE_URL).href,
51
- lastmod,
52
- changefreq: 'daily',
53
- priority: '1.0',
54
- },
55
- ];
56
-
57
- const allPages = [...mainPages, ...apiPages];
+ apiPages.push({
+ loc: new URL('/docs/latest/api/', BASE_URL).href,
+ lastmod,
+ changefreq: 'daily',
+ priority: '1.0',
+ });
58
59
const template = await readFile(
60
join(import.meta.dirname, 'template.xml'),
61
'utf-8'
62
);
63
64
- const urlset = allPages
+ const urlset = apiPages
65
.map(
66
page => dedent`
67
<url>
0 commit comments