みてるぞ 5 days ago
parent
commit
88bf6c8446
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frontend/scripts/generate-sitemap.ts

+ 2
- 0
frontend/scripts/generate-sitemap.ts View File

@@ -30,3 +30,5 @@ const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${ routes.map (route => ` <url><loc>${ DOMAIN }${ route }</loc></url>`).join ('\n') }
</urlset>`

fs.writeFileSync (path.resolve ('dist/sitemap.xml'), xml)

Loading…
Cancel
Save