From 3bf599d3d91ce8892bbcb7e76cd916bbb5ee0a8c Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Thu, 12 Oct 2023 12:04:58 -0600 Subject: [PATCH] fix(nextjs): Add missing environment variables for Nx 18 environment variables closes: #19492 --- packages/next/plugins/with-nx.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/next/plugins/with-nx.ts b/packages/next/plugins/with-nx.ts index cae2d7501f677..3d6636eeb3184 100644 --- a/packages/next/plugins/with-nx.ts +++ b/packages/next/plugins/with-nx.ts @@ -45,6 +45,9 @@ const baseNXEnvironmentVariables = [ 'NX_NEXT_OUTPUT_PATH', 'NX_E2E_RUN_E2E', 'NX_E2E_CI_CACHE_KEY', + 'NX_MAPPINGS', + 'NX_FILE_TO_RUN', + 'NX_NEXT_PUBLIC_DIR', ]; export interface WithNxOptions extends NextConfig {