Skip to content

Conversation

@erezrokah
Copy link
Contributor

- Summary

Fixes #1873

- Test plan

Added a couple of tests

- Description for the changelog

Pass context: dev to @netlify/config when running dev related commands. This should tell @netlify/config to resolve settings from the correct context.

- A picture of a cute animal (not mandatory but encouraged)
image

@erezrokah erezrokah requested a review from a team as a code owner February 14, 2021 16:02
@github-actions github-actions bot added the type: bug code to address defects in shipped code label Feb 14, 2021
await builder.buildAsync()

await withDevServer({ cwd: builder.directory, env: { CONTEXT: 'production' }, args }, async (server) => {
await withDevServer({ cwd: builder.directory, args }, async (server) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should allow overriding it via process level env, but can go either way

@erezrokah erezrokah added type: chore work needed to keep the product and development running smoothly and removed type: chore work needed to keep the product and development running smoothly labels Feb 14, 2021
Copy link
Member

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

🎉

@erezrokah erezrokah merged commit 1de336c into master Feb 15, 2021
@erezrokah erezrokah deleted the fix/cli_context branch February 15, 2021 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug code to address defects in shipped code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Environment variables from the context.production toml config are being injected during netlify dev

3 participants