next.js/packages/next/src/shared/lib/ppr-removed-error.ts
ppr-removed-error.ts14 lines508 B
import { InvariantError } from './invariant-error'

/**
 * Throws an InvariantError indicating that a prerender-ppr code path was
 * reached. The prerender-ppr work unit type has been removed and all code
 * handling it is dead. Use this in exhaustive switch cases while the
 * prerender-ppr type is being cleaned up.
 */
export function throwPrerenderPPRRemovedError(): never {
  throw new InvariantError(
    'The prerender-ppr work unit type has been removed. This code path should be unreachable.'
  )
}
Quest for Codev2.0.0
/
SIGN IN