File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ async function generateSitemap() {
6767 <?xml version="1.0" encoding="UTF-8"?>
6868 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
6969 <url>
70- <loc>https://ui.docs.amplify.aws </loc>
70+ <loc>${ process . env . SITE_URL } </loc>
7171 <changefreq>weekly</changefreq>
7272 <priority>0.5</priority>
7373 <lastmod>2022-05-19T16:24:03.254Z</lastmod>
@@ -95,7 +95,9 @@ async function generateSitemap() {
9595
9696 return `
9797 <url>
98- <loc>${ 'https://ui.docs.amplify.aws' } ${ route } </loc>
98+ <loc>${
99+ process . env . SITE_URL ?? 'https://ui.docs.amplify.aws'
100+ } ${ route } </loc>
99101 <changefreq>weekly</changefreq>
100102 <priority>${ priority } </priority>
101103 <lastmod>${ new Date ( ) . toISOString ( ) } </lastmod>
@@ -140,7 +142,7 @@ Allow: /
140142Host: ui.docs.amplify.aws
141143
142144# Sitemaps
143- Sitemap: ${ 'https://ui.docs.amplify.aws' }
145+ Sitemap: ${ process . env . SITE_URL ?? 'https://ui.docs.amplify.aws' } /sitemap.xml
144146` ;
145147 writeFileSync ( path . resolve ( __dirname , '../public/robots.txt' ) , txt ) ;
146148 console . log ( '🤖✅ robots.txt generated.' ) ;
You can’t perform that action at this time.
0 commit comments