@adoratorio/nuxt-sitemap-generator
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Nuxt Sitemap Generator

nuxt-sitemap-generator

A custom nuxt module to generate XML sitemaps based on a list of routes

Install the package with npm

npm i @adoratorio/nuxt-sitemap-generator

Then extend add the module to your nuxt.config.ts and add a configuration object for sitemap

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@adoratorio/nuxt-sitemap-generator'],
  // ...
  sitemap: {
    hostname: 'https://my-website.demo.com', // Full hostname
    routes: [
      // ... list of routes like '/', '/page'
    ],
    path: '/sitemap.xml' // The relative path to the sitemap file
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @adoratorio/nuxt-sitemap-generator

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

4.64 kB

Total Files

7

Last publish

Collaborators

  • adoratorio.studio
  • danieleborra
  • ne-u
  • andrea_