Skip to content

Commit 15d051b

Browse files
authored
fix(next): disable dev indicators by default (#18466)
1 parent e6cd442 commit 15d051b

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎packages/next/src/withPayload/withPayload.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ export const withPayload = (nextConfig = {}, options = {}) => {
5151
/** @type {import('next').NextConfig} */
5252
const baseConfig = {
5353
...nextConfig,
54-
devIndicators:
55-
nextConfig.devIndicators !== undefined
56-
? nextConfig.devIndicators
57-
: { position: 'bottom-left' },
54+
devIndicators: nextConfig.devIndicators !== undefined ? nextConfig.devIndicators : false,
5855
env,
5956
experimental: {
6057
...(nextConfig.experimental || {}),

‎packages/next/src/withPayload/withPayload.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ describe('withPayload', () => {
2626
}
2727
})
2828

29-
it('should position devIndicators at the bottom left by default', () => {
29+
it('should disable devIndicators by default', () => {
3030
const result = withPayload({})
3131

32-
expect(result.devIndicators).toEqual({ position: 'bottom-left' })
32+
expect(result.devIndicators).toBe(false)
3333
})
3434

3535
it('should use user-provided devIndicators when specified', () => {

0 commit comments

Comments
 (0)