Skip to content

Commit

Permalink
fix: pass context to @netlify/build (#4404)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 1, 2022
1 parent a4eb14d commit 85c3205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/build.js
Expand Up @@ -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
Expand Down

1 comment on commit 85c3205

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 443 MB

Please sign in to comment.