I tried this post XML sitemap for Nextjs but it didn't help me out.
How to create a sitemap and robots.txt dynamically add it to nextjs project is my question. I have built a blog using nextjs and mongodb and express js. This is my project structure frontend(nextjs)
--.next
-- components
-- node_modules
-- pages
-- static
-- config.js
-- next.config.js
-- package.json
-- package-lock.json