I have several tasks related to show sitemap.xml, robot.txt, some pdf files.
Client-side the latest reactjs + webpack.
I tried two ways via reactjs and via Nginx on the server.
on the server I added these lines
location ~ ^/(sitemap.xml) { root /var/www/html/public; }
I tried to add it before and after the main location config but it doesn't work
- the second option. I tried to add a route to the main router in reactjs but it doesn't work too, I just get empty page.
