Function: omitProductionDraftRoutes() ​

Source: 1.2.2 · f05e2ff455c2

ts
function omitProductionDraftRoutes<T>(routes, includeDrafts?): T[];

Defined in: packages/valaxy/shared/page-policy.ts:103

Drop draft: true routes from a production route tree. Development keeps them so authors can preview. Mutates child arrays the same way the router setup always has.

Type Parameters ​

T ​

T extends DraftRoute

Parameters ​

routes ​

T[]

includeDrafts? ​

boolean = false

Returns ​

T[]