From 85c3205cb0c2631b4abeccfc5187c2752064d6a8 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Tue, 1 Mar 2022 18:25:21 +0100 Subject: [PATCH] fix: pass `context` to `@netlify/build` (#4404) --- src/lib/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/build.js b/src/lib/build.js index 79d6ff4275e..27745d9fb34 100644 --- a/src/lib/build.js +++ b/src/lib/build.js @@ -18,11 +18,12 @@ const netlifyBuildPromise = import('@netlify/build') * @param {import('commander').OptionValues} config.options * @returns {BuildConfig} */ -const getBuildOptions = ({ cachedConfig, options: { debug, dry, json, offline, silent }, token }) => ({ +const getBuildOptions = ({ cachedConfig, options: { context, debug, dry, json, offline, silent }, token }) => ({ cachedConfig, token, dry, debug, + context, mode: 'cli', telemetry: false, // buffer = true will not stream output