Fix Sitemap http to https
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user