Commit 0de41835 authored by Steven's avatar Steven

fix lint

parent e03c4ff4
...@@ -1890,18 +1890,18 @@ export default async function build( ...@@ -1890,18 +1890,18 @@ export default async function build(
config.experimental.gzipSize config.experimental.gzipSize
) )
const middlewareManifest: MiddlewareManifest = require( const middlewareManifest: MiddlewareManifest = require(path.join(
path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST) distDir,
) SERVER_DIRECTORY,
MIDDLEWARE_MANIFEST
))
const actionManifest = appDir const actionManifest = appDir
? (require( ? (require(path.join(
path.join( distDir,
distDir, SERVER_DIRECTORY,
SERVER_DIRECTORY, SERVER_REFERENCE_MANIFEST + '.json'
SERVER_REFERENCE_MANIFEST + '.json' )) as ActionManifest)
)
) as ActionManifest)
: null : null
const entriesWithAction = actionManifest ? new Set() : null const entriesWithAction = actionManifest ? new Set() : null
if (actionManifest && entriesWithAction) { if (actionManifest && entriesWithAction) {
...@@ -3287,8 +3287,8 @@ export default async function build( ...@@ -3287,8 +3287,8 @@ export default async function build(
fallback: ssgBlockingFallbackPages.has(tbdRoute) fallback: ssgBlockingFallbackPages.has(tbdRoute)
? null ? null
: ssgStaticFallbackPages.has(tbdRoute) : ssgStaticFallbackPages.has(tbdRoute)
? `${normalizedRoute}.html` ? `${normalizedRoute}.html`
: false, : false,
dataRouteRegex: normalizeRouteRegex( dataRouteRegex: normalizeRouteRegex(
getNamedRouteRegex( getNamedRouteRegex(
dataRoute.replace(/\.json$/, ''), dataRoute.replace(/\.json$/, ''),
......
...@@ -163,8 +163,8 @@ export function getDefineEnv({ ...@@ -163,8 +163,8 @@ export function getDefineEnv({
'process.env.NEXT_RUNTIME': isEdgeServer 'process.env.NEXT_RUNTIME': isEdgeServer
? 'edge' ? 'edge'
: isNodeServer : isNodeServer
? 'nodejs' ? 'nodejs'
: '', : '',
'process.env.NEXT_MINIMAL': '', 'process.env.NEXT_MINIMAL': '',
'process.env.__NEXT_PPR': config.experimental.ppr === true, 'process.env.__NEXT_PPR': config.experimental.ppr === true,
'process.env.NEXT_DEPLOYMENT_ID': config.deploymentId || false, 'process.env.NEXT_DEPLOYMENT_ID': config.deploymentId || false,
......
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