Created
July 14, 2021 06:47
-
-
Save AitorAlejandro/9fbfa204637cd9221aabbac2f3119bd7 to your computer and use it in GitHub Desktop.
secrets keys by env config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (process.env.NODE_ENV === "production") { | |
| module.exports = require("./keys_prod"); | |
| } else { | |
| module.exports = require("./keys_dev"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| googleBooksApiKey: "" | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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