Function: omitProductionDraftRoutes()
Source: 1.6.3 · aea2a9b6dbec
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[]