Skip to content

Commit 2e7399b

Browse files
committed
fix(vite): add homepage to sitemap.xml
1 parent c1e21c0 commit 2e7399b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ function generateSiteMap() {
8989
const SITEMAP_TEMPLATE =
9090
`<?xml version="1.0" encoding="UTF-8"?>\n` +
9191
`<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">\n` +
92+
` <url>\n` +
93+
` <loc>${homepage}</loc>\n` +
94+
` </url>\n` +
9295
urlset.join("\n") + "\n" +
9396
`</urlset>`;
9497

0 commit comments

Comments
 (0)