We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcc791 commit 4d4d082Copy full SHA for 4d4d082
.gitignore
@@ -1,2 +1,2 @@
1
-keys.js
+dev.js
2
node_modules
config/keys.js
@@ -0,0 +1,8 @@
+// keys.js - figure out what set of credentials to return
+if (process.env.NODE_ENV === 'production') {
3
+ // we are in production - return the prod set of keys
4
+ module.exports = require('./prod');
5
+} else {
6
+ // we are in development - return the dev keys!!!
7
+ module.exports = require('./dev');
8
+}
config/prod.js
@@ -0,0 +1,7 @@
+
+module.exports={
+ googleClientID:process.env.GOOGLE_CLIENT_ID,
+ googleClientSecret:process.env.GOOGLE_CLIENT_SECRET,
+ mongoURI:process.env.MONG_URI,
+ cookieKey:process.env.COOKIE_KEY
+};
0 commit comments