DEV Community

Discussion on: Auto-Generate sitemap.xml in Next.js

Collapse
 
chadarri profile image
chadarri

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.

Charlotte

Collapse
 
embiem profile image
Martin Beierling-Mutz

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.