Next.js
Next.js caught a Partial Prerendering bailout error
When Partial Prerendering is enabled, Next.js throws a special bailout error for dynamic APIs like cookies, headers, or no-store fetches, and catching that error breaks static generation.
Next.js
When Partial Prerendering is enabled, Next.js throws a special bailout error for dynamic APIs like cookies, headers, or no-store fetches, and catching that error breaks static generation.
Observed message
Static Bail Out Caught
Why it happens
How to fix it
Official reference
Next.js Docs: Static Bail Out CaughtRelated errors
Explore more