Skip to content

Commit

Permalink
[not a backport] fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Jun 11, 2024
1 parent 2807fb4 commit 0538a0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async function getStaticAssetRouteCode(
fileBaseName === 'favicon'
? 'public, max-age=0, must-revalidate'
: process.env.NODE_ENV !== 'production'
? cacheHeader.none
: cacheHeader.longCache
? cacheHeader.none
: cacheHeader.longCache
const code = `\
/* static asset route */
import { NextResponse } from 'next/server'
Expand Down
20 changes: 10 additions & 10 deletions packages/next/src/server/base-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
...(typeof val === 'string'
? [val]
: Array.isArray(val)
? val
: []),
? val
: []),
]),
]
}
Expand Down Expand Up @@ -904,8 +904,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
req.headers['x-forwarded-port'] ??= this.port
? this.port.toString()
: isHttps
? '443'
: '80'
? '443'
: '80'
req.headers['x-forwarded-proto'] ??= isHttps ? 'https' : 'http'
req.headers['x-forwarded-for'] ??= originalRequest.socket?.remoteAddress

Expand Down Expand Up @@ -1674,8 +1674,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
typeof fallbackField === 'string'
? 'static'
: fallbackField === null
? 'blocking'
: fallbackField,
? 'blocking'
: fallbackField,
}
}

Expand Down Expand Up @@ -2647,10 +2647,10 @@ export default abstract class Server<ServerOptions extends Options = Options> {
isOnDemandRevalidate
? 'REVALIDATED'
: cacheEntry.isMiss
? 'MISS'
: cacheEntry.isStale
? 'STALE'
: 'HIT'
? 'MISS'
: cacheEntry.isStale
? 'STALE'
: 'HIT'
)
}

Expand Down

0 comments on commit 0538a0d

Please sign in to comment.