diff --git a/packages/next/src/server/config-schema.ts b/packages/next/src/server/config-schema.ts index 0005868f2b31..3f1f4fcb404b 100644 --- a/packages/next/src/server/config-schema.ts +++ b/packages/next/src/server/config-schema.ts @@ -339,9 +339,6 @@ const configSchema = { pageEnv: { type: 'boolean', }, - profiling: { - type: 'boolean', - }, proxyTimeout: { minimum: 0, type: 'number', diff --git a/packages/next/src/server/config-shared.ts b/packages/next/src/server/config-shared.ts index f0ebb26d1fbe..620dc5a00b55 100644 --- a/packages/next/src/server/config-shared.ts +++ b/packages/next/src/server/config-shared.ts @@ -92,7 +92,6 @@ export interface ExperimentalConfig { swcFileReading?: boolean cpus?: number sharedPool?: boolean - profiling?: boolean proxyTimeout?: number isrFlushToDisk?: boolean workerThreads?: boolean @@ -582,7 +581,6 @@ export const defaultConfig: NextConfig = { (os.cpus() || { length: 1 }).length) - 1 ), sharedPool: true, - profiling: false, isrFlushToDisk: true, workerThreads: false, pageEnv: false, diff --git a/test/integration/production-swcminify/test/index.test.js b/test/integration/production-swcminify/test/index.test.js index cd4697912c1c..1b4e9937f50f 100644 --- a/test/integration/production-swcminify/test/index.test.js +++ b/test/integration/production-swcminify/test/index.test.js @@ -974,10 +974,6 @@ describe.skip('Production Usage with swcMinify', () => { } }) - it('should not emit profiling events', async () => { - expect(existsSync(join(appDir, '.next', 'profile-events.json'))).toBe(false) - }) - it('should not emit stats', async () => { expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false) }) diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 2650bd523cab..dd8bf557488b 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -1183,10 +1183,6 @@ describe('Production Usage', () => { } }) - it('should not emit profiling events', async () => { - expect(existsSync(join(appDir, '.next', 'profile-events.json'))).toBe(false) - }) - it('should not emit stats', async () => { expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false) })