Unverified Commit f64e92ba authored by Andrew Clark's avatar Andrew Clark Committed by GitHub

Add process.env.__NEXT_PPR to build config (#59253)

Adds process.env.__NEXT_PPR as static flag that it gets inlined by
DefinePlugin during build.

This matches what we do for other experiments, but I do wonder, why do
we bother with process.env at all instead of a global __NEXT_PPR symbol?
I'll leave that for later discussion.

Closes NEXT-1792
parent 65a74b1b
...@@ -98,6 +98,7 @@ export function getDefineEnv({ ...@@ -98,6 +98,7 @@ export function getDefineEnv({
'process.env.__NEXT_WINDOW_HISTORY_SUPPORT': JSON.stringify( 'process.env.__NEXT_WINDOW_HISTORY_SUPPORT': JSON.stringify(
config.experimental.windowHistorySupport config.experimental.windowHistorySupport
), ),
'process.env.__NEXT_PPR': JSON.stringify(config.experimental.ppr === true),
'process.env.__NEXT_ACTIONS_DEPLOYMENT_ID': JSON.stringify( 'process.env.__NEXT_ACTIONS_DEPLOYMENT_ID': JSON.stringify(
config.experimental.useDeploymentIdServerActions config.experimental.useDeploymentIdServerActions
), ),
......
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