1. @nuxtjs/sitemap
Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
@nuxtjs/sitemap
Package: @nuxtjs/sitemap
Created by: nuxt-modules
Last modified: Tue, 09 Apr 2024 02:50:39 GMT
Version: 5.1.4
License: MIT
Downloads: 320,380
Repository: https://github.com/nuxt-modules/sitemap

Install

npm install @nuxtjs/sitemap
yarn add @nuxtjs/sitemap

@nuxtjs/sitemap

NPM version NPM Downloads GitHub stars

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt. Previously nuxt-simple-sitemap.


Status: v5 Released 🎉
Please report any issues 🐛
Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦 • Join Discord for help

Features

  • 🌴 Single /sitemap.xml or multiple /posts-sitemap.xml, /pages-sitemap.xml
  • 📊 Fetch your sitemap URLs from anywhere
  • 😌 Automatic lastmod, image discovery and best practice sitemaps
  • 🔄 SWR caching, route rules support
  • 🎨 Debug using the Nuxt DevTools integration or the XML Stylesheet
  • 🤝 Integrates seamlessly with Nuxt I18n and Nuxt Content

Installation

💡 Need a complete SEO solution for Nuxt? Check out Nuxt SEO.

💡 Using Nuxt 2? Use the nuxt-community/sitemap-module docs.

  1. Install @nuxtjs/sitemap dependency to your project:
 npx nuxi@latest module add sitemap
  1. Add it to your modules section in your nuxt.config:
 export default defineNuxtConfig({
  modules: ['@nuxtjs/sitemap']
})

Documentation

📖 Read the full documentation for more information.

StackBlitz Demos / Reproductions

Sponsors

License

MIT License © 2022-PRESENT Harlan Wilton

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin