diff --git a/src/routes/sitemap.xml.js b/src/routes/sitemap.xml.js index d776508..070ba54 100644 --- a/src/routes/sitemap.xml.js +++ b/src/routes/sitemap.xml.js @@ -46,7 +46,7 @@ const render = (pages, locations) => { // Get function export async function get (req, res, next) { // Define base url from request - baseURL = `http${(req.httpVersion >= 2) ? 's' : ''}://${req.headers.host}` + baseURL = `https://${req.headers.host}` // Get locations const locationsReq = await fetch(`${apiEndpoints.rest}/items/locations?fields=slug,country.slug,modified_on&status=published`)