I'm using Angular 2 and just added a robots.txt to the root of my dist folder on production (for SEO purposes)
But the file isn't accessible since the url https://myrandomsite.com/robots.txt
just redirects to my PageNotFoundComponent because of how my routing is setup.
How can I allow robots.txt to be accessed "normally" and prevent my Angular 2 routing config to trigger?
Edit: I am using Angular2 frontend with a Firebase backend.