Serve Static Files sitemap.xml, robots.txt and favicon.ico With Next.js
Well, to serve static files such as sitemap.xml, robots.txt and favicon.ico with Next.js you just put those static files in static folder and add the below code to your server (server.js) config: