title: Angualr 7 SSR - Error: Cannot match any routes. URL Segment: 'service-worker.js'
body: <p>I have created Angular 7 project and added Server Side Rendering and Service worker.
  Command to Run - <code>npm run build:ssr</code> &amp;&amp; <code>npm run serve:ssr</code>
  After above command project run on <code>localhost:4000</code> and on hitting it in browser it gives below error.</p>
  
  <pre><code>Error - ERROR { Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'service-worker.js'
  Error: Cannot match any routes. URL Segment: 'service-worker.js'
      at ApplyRedirects.noMatchError (/home/am-n1/Documents/Documents/angular7boilerplate/dist/server.js:134788:16)
      ...
  </code></pre>