In the Vue (3.4) application, I created a robots.txt file at the root of the folder. I have deployed my website with a robots.txt file but when I enter the URL https://www.example.com/robots.txt/ it cannot be found and I get a 404 error message.
You need to put this into your public folder. Only the contents of this folder can be accessed directly from the network. Hence why the css/js files are there
Put the robots file into the
public
folder. You should put any files you want to access into the build output (production). readYou need to put this into your public folder. Only the contents of this folder can be accessed directly from the network. Hence why the css/js files are there