From efffa5627c5811ae22d37e26d507832ce6dd8f44 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Wed, 30 Aug 2023 17:43:59 +0200 Subject: [PATCH] Fix TS error because of !! --- packages/next/src/build/webpack-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/build/webpack-config.ts b/packages/next/src/build/webpack-config.ts index f18987d1bdd30..f2bf6bd7923ff 100644 --- a/packages/next/src/build/webpack-config.ts +++ b/packages/next/src/build/webpack-config.ts @@ -787,7 +787,7 @@ export default async function getBaseWebpackConfig( rewrites.afterFiles.length > 0 || rewrites.fallback.length > 0 - const hasAppDir = Boolean(appDir) + const hasAppDir = !!appDir const hasServerComponents = hasAppDir const disableOptimizedLoading = true const enableTypedRoutes = !!config.experimental.typedRoutes && hasAppDir