Skip to content

Commit

Permalink
fix(no-ssr): new digest for no-ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Feb 25, 2024
1 parent 387d6f5 commit 88e12fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/no-ssr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const noSSRError = (errorMessage?: string) => {
}

// Next.js marks errors with `NEXT_DYNAMIC_NO_SSR_CODE` digest as recoverable:
// https://github.com/vercel/next.js/blob/ded28edeae16f8f8b4b9b117a83b5232e3623029/packages/next/src/client/on-recoverable-error.ts#L3
(error as any).digest = 'NEXT_DYNAMIC_NO_SSR_CODE';
// https://github.com/vercel/next.js/blob/bef716ad031591bdf94058aaf4b8d842e75900b5/packages/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts#L2
(error as any).digest = 'BAILOUT_TO_CLIENT_SIDE_RENDERING';

(error as any).recoverableError = 'NO_SSR';

Expand Down

0 comments on commit 88e12fe

Please sign in to comment.