Home » vue » Generate dynamic robots.txt and also sitemap.xml in my Nuxt app or Vue app

Generate dynamic robots.txt and also sitemap.xml in my Nuxt app or Vue app

Posted by: admin November 26, 2021 Leave a comment

Questions:

What I’m trying to do here is to make nuxt.js or vue.js generate a robots.txt and sitemap.xml that can be pulish the data that inside each file from an external api.

Answers:

On Nuxt, you can use these 2 modules to generate dynamically yours robots.txt and sitemap.xml