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 e946be8 commit f1689f3Copy full SHA for f1689f3
packages/paste-website/src/pages/sitemap.xml.tsx
@@ -12,9 +12,15 @@ export const getServerSideProps: GetServerSideProps = async ({ res }) => {
12
const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
13
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
14
${SITEMAP.map((url) => {
15
+ let fullUrl = `${BASE_URL}${url}`;
16
+
17
+ if (!fullUrl.endsWith("/")) {
18
+ fullUrl += "/";
19
+ }
20
21
return `
22
<url>
- <loc>${BASE_URL}${url}</loc>
23
+ <loc>${fullUrl}</loc>
24
<changefreq>daily</changefreq>
25
<priority>0.7</priority>
26
</url>
0 commit comments