I am trying to add the sitemap and robots.txt files to my web NextJs app. I follow your post and I generated the two files without any problems but what is the next step to make accessible via URL the file in production ?
The two files are in the Out directory but they are not accessible in the url online.
Sorry for my bad english, I hope you will understand my problem.
Hey. This really depends on your deployment setup. As long as all files in the out folder are pushed to your static file host, you should be good.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.