diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index 7d5b1d344a..bb501288eb 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -24,6 +24,7 @@ import { pathHasPrefix } from '../shared/lib/router/utils/path-has-prefix' import { ZodParsedType, util as ZodUtil } from 'next/dist/compiled/zod' import type { ZodError, ZodIssue } from 'next/dist/compiled/zod' import { hasNextSupport } from '../telemetry/ci-info' +import { version } from 'next/package.json' export { normalizeConfig } from './config-shared' export type { DomainLocale, NextConfig } from './config-shared' @@ -252,6 +253,12 @@ function assignDefaults( const result = { ...defaultConfig, ...config } + if (result.experimental?.ppr && !version.includes('canary')) { + Log.warn( + `The experimental.ppr feature is present in your current version but we recommend using the latest canary version for the best experience.` + ) + } + if (result.output === 'export') { if (result.i18n) { throw new Error(