title: How can I control which routes Angular decides to Prerender?
body: <p>I'm trying to prerender my angular app using, <code>ng run [myAppName]:prerender</code>. I only want to prerender the content of <code>/</code> as the other routes don't need to be prerendered. Although it finds a way to prerender other routes that are not included in my angular.json config.</p>
  <p>Angular.json</p>
  <pre><code>    &quot;prerender&quot;: {
        &quot;builder&quot;: &quot;@nguniversal/builders:prerender&quot;,
        &quot;options&quot;: {
          &quot;browserTarget&quot;: &quot;[myApp]:build:production&quot;,
          &quot;serverTarget&quot;: &quot;[myApp]:server:production&quot;,
          &quot;routes&quot;: [
            &quot;/&quot; // &lt;--- One route listed...
          ]
        },
        &quot;configurations&quot;: {
          &quot;production&quot;: {}
        }
      }
  </code></pre>
  <p>With the config above it will still prerender 16 other routes, (e.g. /my-other-route)</p>
  <p>Is there a way I can only prerender the <code>/</code> page?</p>
  <pre><code>Package                           Version
  -----------------------------------------------------------
  @angular-devkit/architect         0.901.10
  @angular-devkit/build-angular     0.901.10
  @angular-devkit/build-optimizer   0.901.10
  @angular-devkit/build-webpack     0.901.10
  @angular-devkit/core              9.1.10
  @angular-devkit/schematics        9.1.10
  @angular/cdk                      9.2.4
  @angular/cli                      9.1.10
  @angular/fire                     6.0.2
  @angular/google-maps              10.0.2
  @angular/material                 9.2.4
  @angular/platform-server          9.1.12
  @ngtools/webpack                  9.1.10
  @nguniversal/builders             9.1.1
  @nguniversal/common               9.1.1
  @nguniversal/express-engine       9.1.1
  @schematics/angular               9.1.10
  @schematics/update                0.901.10
  rxjs                              6.5.5
  typescript                        3.8.3
  webpack                           4.42.0
  </code></pre>