|
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
|
Answered by
icyJoseph
Jun 12, 2022
Replies: 3 comments 5 replies
|
Yes. They go under the public folder. https://nextjs.org/docs/basic-features/static-file-serving You can view them at |
3 replies
Answer selected by
Elindo586
|
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 |
2 replies
|
Oh well... it doesn't work on the localhost, but I can view it live on the browser after upload. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. They go under the public folder. https://nextjs.org/docs/basic-features/static-file-serving
You can view them at
example.com/Sitemap.xmlorexample.com/robot.txtas you have them.