Where is the sitemap file?

hackuun
96
hackuun
commented 3 years ago

I don't see where Nuxt is saving the file. I have this

sitemap: {
    path: '/sitemap.xml',
    hostname: 'http://crypto.news',
    cacheTime: 1000 * 60 * 15,
    generate: false, // Enable me when using nuxt generate
    exclude: [
      '/secret',
      '/admin/**'
    ],
    routes: [
      '/crypto/the-decentralized-union-a-blockchain-use-case-part-2',
      '/ico/new-token'
    ]
  }

I have nothing in root, and Static folder.
In .nuxt I have sitemap-routes.json file which contains

["/"]

That's all.
How this thing working anyway?

0
hackuun
96
hackuun
commented 3 years ago

Oh, I found out that this file is generating on the fly when I build and then npm run start. That's awesome!

1
Informations
Question โ€ข Unresolved
#c6 - Created 3 years ago