Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic routes from crawler in generate mode #170

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

NicoPennec
Copy link
Member

@NicoPennec NicoPennec commented Dec 9, 2020

resolves #143

By default the sitemap-module will add all dynamic routes detected by the Nuxt crawler in generate mode, if the generate.crawler option is enabled in the nuxt.config.js (by default true on Nuxt >= v2.13):

$ nuxt generate --target static

A new boolean option crawler will be available in the sitemap config to disable it.

eg. of usage:

// disable on sitemap config
sitemap: {
  hostname: 'https://example.com/',
  crawler: false
},

// disable on sitemapindex config
sitemap: {
  hostname: 'https://example.com/',
  sitemaps: [{
    path: '/sitemap-foo.xml',
    crawler: true
  }, {
    path: '/sitemap-bar.xml',
    crawler: false
  }]
},

@NicoPennec NicoPennec self-assigned this Dec 10, 2020
@LukaHarambasic
Copy link

Is there anyway I can support you on this PR to get it merged? :)

Thanks for your work ❤️

@itsmatteomanf
Copy link

Any update on this @NicoPennec? It would be very cool to have this integrated, doing it manually is a pain especially with this ready to go.

@finex
Copy link

finex commented Apr 10, 2021

Hi, does the sitemap crawler also put the last update date (lastmod sitemap field) from the crawled pages?

@itsmatteomanf
Copy link

It's been almost a year... any update on this? It's pretty important, as it breaks sitemap support with the latest Nuxt versions.

@iBobik
Copy link

iBobik commented Nov 7, 2021

Works well with Nuxt 2.15.8, tried also exclude option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nuxt 2.13.0 compatibility (nuxt static export)
5 participants