From c1349fe78c34a7b5f97fc80dfd6c2eaf2e07ba5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Thu, 24 Oct 2024 19:11:22 +0200 Subject: [PATCH] fix(core): fix DOCUSAURUS_CURRENT_LOCALE = 'undefined' (#10611) --- packages/docusaurus/src/commands/build/build.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/docusaurus/src/commands/build/build.ts b/packages/docusaurus/src/commands/build/build.ts index 1a7826444659..7efaa0ca1dde 100644 --- a/packages/docusaurus/src/commands/build/build.ts +++ b/packages/docusaurus/src/commands/build/build.ts @@ -25,7 +25,6 @@ export async function build( ): Promise { process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; - process.env.DOCUSAURUS_CURRENT_LOCALE = cliOptions.locale?.[0]; if (cliOptions.dev) { logger.info`Building in dev mode`; process.env.BABEL_ENV = 'development';