re: Auto-Generate sitemap.xml in Next.js VIEW POST


Hello Martin,

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.

code of conduct - report abuse