diff --git a/src/routes/robots.txt/+server.ts b/src/routes/robots.txt/+server.ts index 33556c6..1a1bf6b 100644 --- a/src/routes/robots.txt/+server.ts +++ b/src/routes/robots.txt/+server.ts @@ -31,7 +31,7 @@ export async function GET() { * @returns {string} robots.txt content. */ function generateRobotsTxt(siteUrl: string, config: { agent: string; disallow: string[] }[]) { - return `Sitemap: ${siteUrl}/sitemap.xml + return `Sitemap: https://${siteUrl}/sitemap.xml # https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#addsitemap # https://www.robotstxt.org/robotstxt.html