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