Commit 0538a0dc authored by Janka Uryga's avatar Janka Uryga

[not a backport] fix lint errors

parent 2807fb48
......@@ -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'
......
......@@ -852,8 +852,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
...(typeof val === 'string'
? [val]
: Array.isArray(val)
? val
: []),
? val
: []),
]),
]
}
......@@ -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
......@@ -1674,8 +1674,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
typeof fallbackField === 'string'
? 'static'
: fallbackField === null
? 'blocking'
: fallbackField,
? 'blocking'
: fallbackField,
}
}
......@@ -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'
)
}
......
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