Skip to content

Instantly share code, notes, and snippets.

Last active May 26, 2021 20:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save siakaramalegos/ad2ef00cf9eb53cdeb651cd9f751b89c to your computer and use it in GitHub Desktop.
dotenv method of managing secrets
Install the dotenv package: 

$ npm install dotenv

Create a `.env` file in the root of your project, and add your API key


Don't forget to add it to your .gitignore file. While we are here, let's add the _cache/ folder which will be created when we first fetch webmentions:


How I added dotenv support to Netlify is covered in this Stack Overflow answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment