Skip to content

Commit

Permalink
add dotenv and next.config
Browse files Browse the repository at this point in the history
  • Loading branch information
deniaz committed Mar 22, 2020
1 parent 7721bb0 commit b06261e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require('dotenv').config();

module.exports = {
env: {
MONGO_DB_HOST: process.env.MONGO_DB_HOST,
OPENCAGEDATA_API_KEY: process.env.OPENCAGEDATA_API_KEY,
},
};
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@types/mongodb": "^3.5.2",
"@types/node": "^13.9.2",
"@types/react": "^16.9.25",
"dotenv": "^8.2.0",
"prettier": "^2.0.1",
"typescript": "^3.8.3"
}
Expand Down

0 comments on commit b06261e

Please sign in to comment.