Skip to content

Commit

Permalink
rename experimental config
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed May 5, 2023
1 parent 8650e56 commit 3f3c49e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/server/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ const configSchema = {
},
},
},
verboseRequestLogs: {
type: 'boolean',
logging: {
type: 'string',
},
},
type: 'object',
Expand Down
3 changes: 1 addition & 2 deletions packages/next/src/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface NextJsWebpackConfig {
}

export interface ExperimentalConfig {
verboseRequestLogs?: boolean
logging?: 'verbose'
appDocumentPreloading?: boolean
strictNextHead?: boolean
clientRouterFilter?: boolean
Expand Down Expand Up @@ -659,7 +659,6 @@ export const defaultConfig: NextConfig = {
output: !!process.env.NEXT_PRIVATE_STANDALONE ? 'standalone' : undefined,
modularizeImports: undefined,
experimental: {
verboseRequestLogs: false,
appDocumentPreloading: true,
clientRouterFilter: false,
clientRouterFilterRedirects: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ export default class NextNodeServer extends BaseServer {
)
}
process.stdout.write('\n')
} else if (this.nextConfig.experimental.verboseRequestLogs) {
} else if (this.nextConfig.experimental.logging === 'verbose') {
process.stdout.write(
`- ${chalk.cyan(req.method || 'GET')} ${req.url} ${
res.statusCode
Expand Down

0 comments on commit 3f3c49e

Please sign in to comment.