Skip to content

Commit

Permalink
types: remove config.experimental.profiling (#44507)
Browse files Browse the repository at this point in the history
This option was initialial added in #8378.

This pr removes `config.experimental.profiling` since this option is no
longer used.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
promer94 and ijjk committed Jan 3, 2023
1 parent c728575 commit 599ca81
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions packages/next/src/server/config-schema.ts
Expand Up @@ -339,9 +339,6 @@ const configSchema = {
pageEnv: {
type: 'boolean',
},
profiling: {
type: 'boolean',
},
proxyTimeout: {
minimum: 0,
type: 'number',
Expand Down
2 changes: 0 additions & 2 deletions packages/next/src/server/config-shared.ts
Expand Up @@ -92,7 +92,6 @@ export interface ExperimentalConfig {
swcFileReading?: boolean
cpus?: number
sharedPool?: boolean
profiling?: boolean
proxyTimeout?: number
isrFlushToDisk?: boolean
workerThreads?: boolean
Expand Down Expand Up @@ -582,7 +581,6 @@ export const defaultConfig: NextConfig = {
(os.cpus() || { length: 1 }).length) - 1
),
sharedPool: true,
profiling: false,
isrFlushToDisk: true,
workerThreads: false,
pageEnv: false,
Expand Down
4 changes: 0 additions & 4 deletions test/integration/production-swcminify/test/index.test.js
Expand Up @@ -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)
})
Expand Down
4 changes: 0 additions & 4 deletions test/integration/production/test/index.test.js
Expand Up @@ -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)
})
Expand Down

0 comments on commit 599ca81

Please sign in to comment.