Skip to content
Advertisement

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

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.

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement