Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Apr 26, 2024
1 parent d8b1e2e commit c96af4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next/src/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1142,10 +1142,12 @@ export default class NextNodeServer extends BaseServer<
const color = statusColor(res.statusCode)
const method = req.method || 'GET'
const requestUrl = req.url || ''
const url = isRSC ? stripNextRscUnionQuery(requestUrl) : requestUrl
const loggingUrl = isRSC
? stripNextRscUnionQuery(requestUrl)
: requestUrl

writeStdoutLine(
`${method} ${url} ${color(
`${method} ${loggingUrl} ${color(
res.statusCode.toString()
)} in ${reqDuration}ms`
)
Expand Down

0 comments on commit c96af4b

Please sign in to comment.