From 0de418351392e302c9c4538f06d352b1c157a445 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 4 Oct 2024 18:34:26 -0400 Subject: [PATCH] fix lint --- packages/next/src/build/index.ts | 24 +++++++++---------- .../webpack/plugins/define-env-plugin.ts | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/next/src/build/index.ts b/packages/next/src/build/index.ts index 54da0dadbb727..6b4040744fe31 100644 --- a/packages/next/src/build/index.ts +++ b/packages/next/src/build/index.ts @@ -1890,18 +1890,18 @@ export default async function build( config.experimental.gzipSize ) - const middlewareManifest: MiddlewareManifest = require( - path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST) - ) + const middlewareManifest: MiddlewareManifest = require(path.join( + distDir, + SERVER_DIRECTORY, + MIDDLEWARE_MANIFEST + )) const actionManifest = appDir - ? (require( - path.join( - distDir, - SERVER_DIRECTORY, - SERVER_REFERENCE_MANIFEST + '.json' - ) - ) as ActionManifest) + ? (require(path.join( + distDir, + SERVER_DIRECTORY, + SERVER_REFERENCE_MANIFEST + '.json' + )) as ActionManifest) : null const entriesWithAction = actionManifest ? new Set() : null if (actionManifest && entriesWithAction) { @@ -3287,8 +3287,8 @@ export default async function build( fallback: ssgBlockingFallbackPages.has(tbdRoute) ? null : ssgStaticFallbackPages.has(tbdRoute) - ? `${normalizedRoute}.html` - : false, + ? `${normalizedRoute}.html` + : false, dataRouteRegex: normalizeRouteRegex( getNamedRouteRegex( dataRoute.replace(/\.json$/, ''), diff --git a/packages/next/src/build/webpack/plugins/define-env-plugin.ts b/packages/next/src/build/webpack/plugins/define-env-plugin.ts index c6f38c90d42b8..1c93f9f3fd8a3 100644 --- a/packages/next/src/build/webpack/plugins/define-env-plugin.ts +++ b/packages/next/src/build/webpack/plugins/define-env-plugin.ts @@ -163,8 +163,8 @@ export function getDefineEnv({ 'process.env.NEXT_RUNTIME': isEdgeServer ? 'edge' : isNodeServer - ? 'nodejs' - : '', + ? 'nodejs' + : '', 'process.env.NEXT_MINIMAL': '', 'process.env.__NEXT_PPR': config.experimental.ppr === true, 'process.env.NEXT_DEPLOYMENT_ID': config.deploymentId || false,