Unverified Commit 599ca813 authored by Yixuan Xu's avatar Yixuan Xu Committed by GitHub

types: remove config.experimental.profiling (#44507)

This option was initialial added in #8378.

This pr removes `config.experimental.profiling` since this option is no
longer used.
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent c7285755
...@@ -339,9 +339,6 @@ const configSchema = { ...@@ -339,9 +339,6 @@ const configSchema = {
pageEnv: { pageEnv: {
type: 'boolean', type: 'boolean',
}, },
profiling: {
type: 'boolean',
},
proxyTimeout: { proxyTimeout: {
minimum: 0, minimum: 0,
type: 'number', type: 'number',
......
...@@ -92,7 +92,6 @@ export interface ExperimentalConfig { ...@@ -92,7 +92,6 @@ export interface ExperimentalConfig {
swcFileReading?: boolean swcFileReading?: boolean
cpus?: number cpus?: number
sharedPool?: boolean sharedPool?: boolean
profiling?: boolean
proxyTimeout?: number proxyTimeout?: number
isrFlushToDisk?: boolean isrFlushToDisk?: boolean
workerThreads?: boolean workerThreads?: boolean
...@@ -582,7 +581,6 @@ export const defaultConfig: NextConfig = { ...@@ -582,7 +581,6 @@ export const defaultConfig: NextConfig = {
(os.cpus() || { length: 1 }).length) - 1 (os.cpus() || { length: 1 }).length) - 1
), ),
sharedPool: true, sharedPool: true,
profiling: false,
isrFlushToDisk: true, isrFlushToDisk: true,
workerThreads: false, workerThreads: false,
pageEnv: false, pageEnv: false,
......
...@@ -974,10 +974,6 @@ describe.skip('Production Usage with swcMinify', () => { ...@@ -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 () => { it('should not emit stats', async () => {
expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false) expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false)
}) })
......
...@@ -1183,10 +1183,6 @@ describe('Production Usage', () => { ...@@ -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 () => { it('should not emit stats', async () => {
expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false) expect(existsSync(join(appDir, '.next', 'next-stats.json'))).toBe(false)
}) })
......
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