Robot.txt file?

I recently deployed a new NUXT build and am failing the SEO audit for my robots.txt file in Lighthouse. I found the nuxtjs/robots module on NPM - is that the way to generate the robot.txt file dynamically?
2 Replies
warflash
warflash2y ago
You can just put one in /public directory
harlan
harlan2y ago
Creating the file yourself is the easiest I'd recommend nuxt-simple-robots as it will handle indexing better

Did you find this page helpful?