diff --git a/packages/paste-website/src/pages/sitemap.xml.tsx b/packages/paste-website/src/pages/sitemap.xml.tsx index 8b0318ddb6..25a8359918 100644 --- a/packages/paste-website/src/pages/sitemap.xml.tsx +++ b/packages/paste-website/src/pages/sitemap.xml.tsx @@ -12,9 +12,15 @@ export const getServerSideProps: GetServerSideProps = async ({ res }) => { const sitemap = ` ${SITEMAP.map((url) => { + let fullUrl = `${BASE_URL}${url}`; + + if (!fullUrl.endsWith("/")) { + fullUrl += "/"; + } + return ` - ${BASE_URL}${url} + ${fullUrl} daily 0.7