Skip to content

Instantly share code, notes, and snippets.

Last active May 26, 2021 20:26
What would you like to do?
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