From 7e2b7d53bfbbb879d1c47b194e56ecd810eeb6e8 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Fri, 15 Sep 2023 18:11:16 -0600 Subject: [PATCH] fix(nextjs): Add NX_NEXT_OUTPUT_PATH to base Nx Env closes: #19044 --- 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 a4d1e7225b6bc7..cae2d7501f6773 100644 --- a/packages/next/plugins/with-nx.ts +++ b/packages/next/plugins/with-nx.ts @@ -42,6 +42,9 @@ const baseNXEnvironmentVariables = [ 'NX_WORKSPACE_ROOT', 'NX_TASK_HASH', 'NX_NEXT_DIR', + 'NX_NEXT_OUTPUT_PATH', + 'NX_E2E_RUN_E2E', + 'NX_E2E_CI_CACHE_KEY', ]; export interface WithNxOptions extends NextConfig {