Open ZackKanter opened 1 year ago
this is also an interesting one because STEDI_API_KEY
shouldn't be needed in the functions themselves IIRC. cc: @OlafConijn who worked on those changes. are we missing something in the bootstrap repo for that to work?
We could add some validation to all Bootstrap CLI commands to verify that the .env
file exists and it has at least STEDI_API_KEY
defined?
We could add some validation to all Bootstrap CLI commands to verify that the
.env
file exists and it has at leastSTEDI_API_KEY
defined?
Yes, I think that's a good idea.
this is also an interesting one because STEDI_API_KEY shouldn't be needed in the functions themselves IIRC. cc: @OlafConijn who worked on those changes. are we missing something in the bootstrap repo for that to work?
This was my recollection as well.
We discussed also ensuring that the value of STEDI_API_KEY
in the .env
matches the value in process.env.STEDI_API_KEY
in case a user sets the env var manually in their shell (bash, etc) etc. If they do not match, we such block all commands from running.
Steps to reproduce:
Clone the bootstrap repository and install the necessary dependencies:
Store your Stedi API key and webhook destination URL as environment variables:
npm bootstrap
STEDI_API_KEY
environment variable, and your local.env
file will only have the following: