mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: root domain sitemaps
This commit is contained in:
1 parent
65014cade3
commit
ea4b244336
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Allow: /
|
||||||
|
|
||||||
Host: https://blitzkit.vercel.app
|
Host: https://blitzkit.app
|
||||||
|
|
||||||
Sitemap: https://blitzkit.vercel.app/sitemap.txt
|
Sitemap: https://blitzkit.app/sitemap.txt
|
||||||
Sitemap: https://blitzkit.vercel.app/sitemap.xml
|
Sitemap: https://blitzkit.app/sitemap.xml
|
||||||
+2
-2
@@ -8,14 +8,14 @@ console.log('Building sitemap...');
|
|||||||
const awaitedTankDefinitions = await tankDefinitions;
|
const awaitedTankDefinitions = await tankDefinitions;
|
||||||
const values = Object.values(awaitedTankDefinitions);
|
const values = Object.values(awaitedTankDefinitions);
|
||||||
const txt = values
|
const txt = values
|
||||||
.map((tank) => `https://blitzkit.vercel.app/tools/tankopedia/${tank.id}/`)
|
.map((tank) => `https://blitzkit.app/tools/tankopedia/${tank.id}/`)
|
||||||
.join('\n');
|
.join('\n');
|
||||||
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||||
${values
|
${values
|
||||||
.map(
|
.map(
|
||||||
(tank) =>
|
(tank) =>
|
||||||
`<url><loc>https://blitzkit.vercel.app/tools/tankopedia/${tank.id}/</loc></url>`,
|
`<url><loc>https://blitzkit.app/tools/tankopedia/${tank.id}/</loc></url>`,
|
||||||
)
|
)
|
||||||
.join('\n')}
|
.join('\n')}
|
||||||
</urlset>`;
|
</urlset>`;
|
||||||
|
|||||||
Reference in new issue
Block a user