From df97dca371848b3954c202d8424f4c6f3f9b448c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Wed, 2 Oct 2024 11:12:04 +0200 Subject: [PATCH] Improve --- docs/next.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 49664e62efd1c3..aaf5919d1c1f26 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -56,7 +56,7 @@ export default withDocsInfra({ // We only care about Node runtime at this point. (options.nextRuntime === undefined || options.nextRuntime === 'nodejs') ) { - const externals = config.externals.slice(0, config.externals.length - 2); + const externals = config.externals.slice(0, -1); const nextExternals = config.externals.at(-1); config.externals = [