diff --git a/src/sitemap-pipe.js b/src/sitemap-pipe.js index a3f8c926..91deb39f 100644 --- a/src/sitemap-pipe.js +++ b/src/sitemap-pipe.js @@ -41,8 +41,8 @@ async function generateSitemap(state) { throw new PipelineStatusError(404, 'Expected \'data\' array not found in /sitemap.json'); } const host = partition === 'preview' - ? (previewHost || `${ref}--${repo}--${owner}.hlx.page`) - : (prodHost || liveHost || `${ref}--${repo}--${owner}.hlx.live`); + ? (previewHost || `${ref}--${repo}--${owner}.aem.page`) + : (prodHost || liveHost || `${ref}--${repo}--${owner}.aem.live`); const loc = ({ path, lastModified }) => ` https://${host}${escape(path)} ${new Date(lastModified * 1000).toISOString().substring(0, 10)} diff --git a/test/sitemap-pipe.test.js b/test/sitemap-pipe.test.js index fe9cfaae..0a43882b 100644 --- a/test/sitemap-pipe.test.js +++ b/test/sitemap-pipe.test.js @@ -159,11 +159,11 @@ describe('Sitemap Pipe Test', () => { assert.strictEqual(resp.body, ` - https://ref--repo--owner.hlx.page/ + https://ref--repo--owner.aem.page/ 2023-11-30 - https://ref--repo--owner.hlx.page/test + https://ref--repo--owner.aem.page/test 2023-12-21 @@ -303,11 +303,11 @@ describe('Sitemap Pipe Test', () => { assert.strictEqual(resp.body, ` - https://ref--repo--owner.hlx.live/ + https://ref--repo--owner.aem.live/ 2023-11-30 - https://ref--repo--owner.hlx.live/test + https://ref--repo--owner.aem.live/test 2023-12-21