diff --git a/packages/next/src/build/webpack/plugins/define-env-plugin.ts b/packages/next/src/build/webpack/plugins/define-env-plugin.ts index 2217f9a2af436..54a2609a9a589 100644 --- a/packages/next/src/build/webpack/plugins/define-env-plugin.ts +++ b/packages/next/src/build/webpack/plugins/define-env-plugin.ts @@ -98,6 +98,7 @@ export function getDefineEnv({ 'process.env.__NEXT_WINDOW_HISTORY_SUPPORT': JSON.stringify( config.experimental.windowHistorySupport ), + 'process.env.__NEXT_PPR': JSON.stringify(config.experimental.ppr === true), 'process.env.__NEXT_ACTIONS_DEPLOYMENT_ID': JSON.stringify( config.experimental.useDeploymentIdServerActions ),