cli
cli copied to clipboard
Environment variables not available in `onPreDev` plugin event
Describe the bug
@biilmann has reported that he's not seeing the URL
environment variable in the onPreDev
event of a build plugin when running netlify dev --live
. We should do a review of the environment variables we're exposing and ensure they're consistent with what's available to functions.
https://github.com/netlify/cli/pull/5607
Steps to reproduce
- Create a build plugin with a
onPreDev
that printsprocess.env
- Create a function that prints
process.env
- Run
netlify dev --live
- Compare the output of the two sources