Skip to content

Commit

Permalink
chore: stop supplying env to @netlify/build
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Jan 13, 2021
1 parent 320d074 commit 7e14778
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,8 @@ const getBuildOptions = ({ context, token, flags }) => {
const { dry, debug } = flags
// buffer = true will not stream output
const buffer = flags.json || flags.silent
const env = Object.entries(cachedConfig.env).reduce(
(obj, [key, variable]) => ({
...obj,
[key]: variable.value,
}),
{},
)

return { cachedConfig: serializedConfig, token, dry, debug, mode: 'cli', telemetry: false, buffer, env }
return { cachedConfig: serializedConfig, token, dry, debug, mode: 'cli', telemetry: false, buffer }
}

const runBuild = async (options) => {
Expand Down

0 comments on commit 7e14778

Please sign in to comment.