Unverified Commit fe0d947a authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

ensure experimental warning shows up when using PPR (#58206)

Fixes a bug where when `config.experimental.ppr` was set, we didn't show
the proper warning indicator that the feature is experimental.
parent c26c10f4
......@@ -790,6 +790,7 @@ export const defaultConfig: NextConfig = {
typedRoutes: false,
instrumentationHook: false,
bundlePagesExternals: false,
ppr: false,
},
}
......
......@@ -7,6 +7,10 @@ createNextDescribe(
skipDeployment: true,
},
({ next, isNextDev, isNextStart }) => {
it('should indicate the feature is experimental', () => {
expect(next.cliOutput).toContain('Experiments (use at your own risk)')
expect(next.cliOutput).toContain('ppr')
})
if (isNextStart) {
describe('build output', () => {
it('correctly marks pages as being partially prerendered in the build output', () => {
......
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