-
So I generated a sitemap from xml-sitempas.com.... good deal, it works with Next... Now, where can I load it in the file system? And can I view it? Could this be OK? and can I view on the browser? ROOT
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yes. They go under the public folder. https://nextjs.org/docs/basic-features/static-file-serving You can view them at |
Beta Was this translation helpful? Give feedback.
-
Ok... so they must be under the ROOT folder and not the the /public folder. Also.... http://localhost:3000/sitemap.xml does it work on the localhost? I am getting a 404 error with both robot and sitemap |
Beta Was this translation helpful? Give feedback.
-
Oh well... it doesn't work on the localhost, but I can view it live on the browser after upload. |
Beta Was this translation helpful? Give feedback.
Yes. They go under the public folder. https://nextjs.org/docs/basic-features/static-file-serving
You can view them at
example.com/Sitemap.xml
orexample.com/robot.txt
as you have them.