From 0538a0dc574c0b05dd2475cf3496a2d689f71165 Mon Sep 17 00:00:00 2001 From: Janka Uryga Date: Tue, 11 Jun 2024 23:39:54 +0200 Subject: [PATCH] [not a backport] fix lint errors --- .../loaders/next-metadata-route-loader.ts | 4 ++-- packages/next/src/server/base-server.ts | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts b/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts index 21dce1e6e0827..3f67dfe1b3360 100644 --- a/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts +++ b/packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts @@ -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' diff --git a/packages/next/src/server/base-server.ts b/packages/next/src/server/base-server.ts index d4c806dddabdd..31cf8f934ba06 100644 --- a/packages/next/src/server/base-server.ts +++ b/packages/next/src/server/base-server.ts @@ -852,8 +852,8 @@ export default abstract class Server { ...(typeof val === 'string' ? [val] : Array.isArray(val) - ? val - : []), + ? val + : []), ]), ] } @@ -904,8 +904,8 @@ export default abstract class Server { 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 { typeof fallbackField === 'string' ? 'static' : fallbackField === null - ? 'blocking' - : fallbackField, + ? 'blocking' + : fallbackField, } } @@ -2647,10 +2647,10 @@ export default abstract class Server { isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss - ? 'MISS' - : cacheEntry.isStale - ? 'STALE' - : 'HIT' + ? 'MISS' + : cacheEntry.isStale + ? 'STALE' + : 'HIT' ) }