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( ...@@ -57,8 +57,8 @@ async function getStaticAssetRouteCode(
fileBaseName === 'favicon' fileBaseName === 'favicon'
? 'public, max-age=0, must-revalidate' ? 'public, max-age=0, must-revalidate'
: process.env.NODE_ENV !== 'production' : process.env.NODE_ENV !== 'production'
? cacheHeader.none ? cacheHeader.none
: cacheHeader.longCache : cacheHeader.longCache
const code = `\ const code = `\
/* static asset route */ /* static asset route */
import { NextResponse } from 'next/server' import { NextResponse } from 'next/server'
......
...@@ -852,8 +852,8 @@ export default abstract class Server<ServerOptions extends Options = Options> { ...@@ -852,8 +852,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
...(typeof val === 'string' ...(typeof val === 'string'
? [val] ? [val]
: Array.isArray(val) : Array.isArray(val)
? val ? val
: []), : []),
]), ]),
] ]
} }
...@@ -904,8 +904,8 @@ export default abstract class Server<ServerOptions extends Options = Options> { ...@@ -904,8 +904,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
req.headers['x-forwarded-port'] ??= this.port req.headers['x-forwarded-port'] ??= this.port
? this.port.toString() ? this.port.toString()
: isHttps : isHttps
? '443' ? '443'
: '80' : '80'
req.headers['x-forwarded-proto'] ??= isHttps ? 'https' : 'http' req.headers['x-forwarded-proto'] ??= isHttps ? 'https' : 'http'
req.headers['x-forwarded-for'] ??= originalRequest.socket?.remoteAddress req.headers['x-forwarded-for'] ??= originalRequest.socket?.remoteAddress
...@@ -1674,8 +1674,8 @@ export default abstract class Server<ServerOptions extends Options = Options> { ...@@ -1674,8 +1674,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
typeof fallbackField === 'string' typeof fallbackField === 'string'
? 'static' ? 'static'
: fallbackField === null : fallbackField === null
? 'blocking' ? 'blocking'
: fallbackField, : fallbackField,
} }
} }
...@@ -2647,10 +2647,10 @@ export default abstract class Server<ServerOptions extends Options = Options> { ...@@ -2647,10 +2647,10 @@ export default abstract class Server<ServerOptions extends Options = Options> {
isOnDemandRevalidate isOnDemandRevalidate
? 'REVALIDATED' ? 'REVALIDATED'
: cacheEntry.isMiss : cacheEntry.isMiss
? 'MISS' ? 'MISS'
: cacheEntry.isStale : cacheEntry.isStale
? 'STALE' ? 'STALE'
: 'HIT' : '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