Skip to content

WoodierCupd/sitemap-module-dynamic-host

 
 

Repository files navigation

@nuxtjs/sitemap

Sitemap Module for Nuxt 2

npm (scoped with tag) Downloads Build Status Coverage Status License

Automatically generate or serve dynamic sitemap.xml for Nuxt projects!

💡 Using Nuxt 3? The repo has moved to nuxt-modules/sitemap.

💡 If you intend to use this module for Nuxt 2, you should stay on version 2.x.

Read Documentation

📖 Release Notes

License

MIT License

Contributors

What is added in this fork?

The Dynamic host option made by Rylax

Add the sitemap configuration in your nuxt.config.js file:

sitemap: {
  dynamicHost: true,
  routes: async (host) => {
    // Now you have access to the host variable
    // Implement logic to generate sitemap routes based on the host
  }
}

About

Sitemap Module for Nuxt 2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.1%
  • Vue 1.9%