cli icon indicating copy to clipboard operation
cli copied to clipboard

Can't access Shared environment variables from `netlify dev`

Open theostanton opened this issue 7 years ago • 2 comments

- Do you want to request a feature or report a bug? Report a bug.

- What is the current behavior? The netlify dev command correctly pulls in env vars for the linked project but doesn't pull in team wide env vars from the Shared Environment Variables section of Team Settings.

- If the current behavior is a bug, please provide the steps to reproduce. Link a project and call netlify dev

- What is the expected behavior? See the same env vars when calling netlify dev as when building remotely in Netlify.

theostanton avatar May 15 '19 17:05 theostanton

acknowledged and fool has given us more context :)

swyxio avatar May 15 '19 18:05 swyxio

Hey @sw-yx Any updates about this? We recently upgraded our account to be able to use the shared environment variables feature, included in the pro plan. But unfortunately, I found out that netlify-dev doesn't support this feature yet. I was able to make it work by tweaking some parts of the addEnvVariables function. I'm going to open a PR for it today; it'll be great if you can find time to review it. Thanks

eddiecooro avatar Feb 07 '20 13:02 eddiecooro