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 {