Unverified Commit 39ccec89 authored by Wyatt Johnson's avatar Wyatt Johnson Committed by GitHub

[ppr] Remove canary requirement (#66112)

This removes the canary requirement for using PPR in a project, and now
enables use on stable releases.
parent 188b37d1
...@@ -270,16 +270,6 @@ function assignDefaults( ...@@ -270,16 +270,6 @@ function assignDefaults(
) )
} }
if (
result.experimental?.ppr &&
!process.env.__NEXT_VERSION!.includes('canary') &&
!process.env.__NEXT_TEST_MODE
) {
throw new Error(
`The experimental.ppr preview feature can only be enabled when using the latest canary version of Next.js. See more info here: https://nextjs.org/docs/messages/ppr-preview`
)
}
if (result.output === 'export') { if (result.output === 'export') {
if (result.i18n) { if (result.i18n) {
throw new Error( throw new Error(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment