sendgrid-nodejs icon indicating copy to clipboard operation
sendgrid-nodejs copied to clipboard

unable to create an node.jd environment variable for sendgrid on windows

Open IshayMaya opened this issue 7 years ago • 3 comments

There are 3 steps at the Sendrig Docs to set the enviorment variable :

  1. echo "export SENDGRID_API_KEY='YOUR_KEY'" > sendgrid.env

  2. echo "sendgrid.env" >> .gitignore

  3. source ./sendgrid.env

1-2 are working fine , but when i tried the 3rd step i got this message : 'source' is not recognized as an internal or external command, operable program or batch file.

I understand that the 'source' command belongs to linux , so my question is what is the equivalent for this step in windows ? for some reason i found no mentions for this in the documentaion

IshayMaya avatar Jul 07 '19 11:07 IshayMaya

You can just use set SENDGRID_API_KEY='YOUR_KEY' on Windows.

childish-sambino avatar Mar 03 '20 18:03 childish-sambino

how to do this on windows?

shaheryarshaikh1011 avatar Sep 23 '20 15:09 shaheryarshaikh1011

@shaheryarshaikh1011

You can just use set SENDGRID_API_KEY='YOUR_KEY' on Windows.

childish-sambino avatar Sep 23 '20 15:09 childish-sambino