Ad

Telling Scully To Ignore Static Page Generation For A Route?

Suppose we have the following routes defined:

const routes: Routes = [
  {
    path: '',
    component: WelcomeComponent
  },  
  {
    path: 'start',
    component: StartComponent
  }

Is the a way to tell Scully to skip generation fo a static page for the start route?

Ad

Answer

You can do this by using the ignoredRoutePlugin.

`/someRoute`:{
  type:'ignored'
}

It doesn't look like it's in the documentation yet but here is the code in the repo: https://github.com/scullyio/scully/blob/main/libs/scully/src/lib/routerPlugins/ignoredRoutePlugin.ts

Ad
source: stackoverflow.com
Ad