@backpackjs/sitemap
v1.2.7
Published
CommonJS only package
Downloads
172
Maintainers
Keywords
Readme
@backpackjs/sitemap
CommonJS only package
Default plugin options:
module.exports = {
debug: false,
withIndex: true, // if true, there sitemap.xml will be an index of sitemaps, else it would be a flat sitemap.xml with all the links
filename: 'sitemap',
dynamicPaths: ['articles', 'blogs', 'pages', 'products', 'collections'],
manualPaths: ['', 'account', 'cart', 'account/login', 'account/register', 'cart'],
// @see: https://www.npmjs.com/package/sitemap
options: {
hostname: process.env.SITE_URL,
// xslUrl: "https://example.com/style.xsl",
lastmodDateOnly: false, // print date not time
xmlns: { // trim the xml namespace
news: true, // flip to false to omit the xml namespace for news
xhtml: true,
image: true,
video: true,
// custom: [
// 'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"',
// 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"',
// ],
}
}
}