Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created July 14, 2021 06:47
Show Gist options
  • Select an option

  • Save AitorAlejandro/9fbfa204637cd9221aabbac2f3119bd7 to your computer and use it in GitHub Desktop.

Select an option

Save AitorAlejandro/9fbfa204637cd9221aabbac2f3119bd7 to your computer and use it in GitHub Desktop.
secrets keys by env config
if (process.env.NODE_ENV === "production") {
module.exports = require("./keys_prod");
} else {
module.exports = require("./keys_dev");
}
module.exports = {
googleBooksApiKey: ""
};
module.exports = {
googleBooksApiKey: process.env.GOOGLE_BOOKS_API_KEY
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment