Skip to content

Commit

Permalink
ensure experimental warning shows up when using PPR (#58206)
Browse files Browse the repository at this point in the history
Fixes a bug where when `config.experimental.ppr` was set, we didn't show
the proper warning indicator that the feature is experimental.
  • Loading branch information
ztanner authored Nov 8, 2023
1 parent c26c10f commit fe0d947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ export const defaultConfig: NextConfig = {
typedRoutes: false,
instrumentationHook: false,
bundlePagesExternals: false,
ppr: false,
},
}

Expand Down
4 changes: 4 additions & 0 deletions test/e2e/app-dir/ppr/ppr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit fe0d947

Please sign in to comment.