Allow defining allowed environment variables through the CLI #9024
KennethHoff
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Can you explain how this is different than setting up the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
--env-mode=looseNon-goals
No response
Background
This is kind of the inverse of #8757, which recently shipped.
Proposal
Calling this command
with this configuration:
{ "$schema": "https://turbo.build/schema.json", "tasks": { "dev": { } } }would be equivalent to this:
{ "$schema": "https://turbo.build/schema.json", "tasks": { "dev": { "env": ["API1_BASE_URL", "API2_BASE_URL"] } } }just like how this command
with this configuration:
{ "$schema": "https://turbo.build/schema.json", "tasks": { "dev": { } } }is equivalent to this:
{ "$schema": "https://turbo.build/schema.json", "tasks": { "dev": { "envMode": "loose" } } }Beta Was this translation helpful? Give feedback.
All reactions