From 7b12c20a46e4119e9a34ad15f9109765876a265b Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 4 May 2023 09:43:57 +0700 Subject: fixing sitemap --- src/pages/sitemap/brands.xml.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pages/sitemap/brands.xml.js') diff --git a/src/pages/sitemap/brands.xml.js b/src/pages/sitemap/brands.xml.js index 7d16bde3..bfd21dba 100644 --- a/src/pages/sitemap/brands.xml.js +++ b/src/pages/sitemap/brands.xml.js @@ -7,7 +7,10 @@ import odooApi from '@/core/api/odooApi' export async function getServerSideProps({ res }) { const baseUrl = process.env.SELF_HOST + '/shop/brands/' const brands = await odooApi('GET', `/api/v1/manufacture?limit=0`) - const sitemap = create('urlset', { encoding: 'UTF-8' }) + const sitemap = create('urlset', { encoding: 'utf-8' }).att( + 'xmlns', + 'http://www.sitemaps.org/schemas/sitemap/0.9' + ) const date = new Date() brands.manufactures.forEach((brand) => { -- cgit v1.2.3