fedeya / remix-sitemap

Sitemap generator for Remix applications
https://npmjs.com/remix-sitemap
MIT License
95 stars 5 forks source link

Use build time and runtime at the same time #30

Closed fedeya closed 1 year ago

fedeya commented 1 year ago

Is your feature request related to a problem? Please describe. This feature can be used for use the 2 generation modes at the same time for example keeping the static routes at build time and dynamic at runtime. Right now you need to choice one

Describe the solution you'd like Add a exclude array of relative paths property with wildcard support in the config. this should be compared with the remix path of each route

/** @type {import('remix-sitemap').Config} */
module.exports = {
  siteUrl: 'https://example.com',
  exclude: ['/posts/*', '/private/*', '/article-*']
}