-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
19 lines (16 loc) · 778 Bytes
/
config.js
File metadata and controls
19 lines (16 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// You can also use $ npm run start_local and then remove all dotenv
// references in the code. The dotenv package provides an option where
// you can preload the variables outside of your code.
// You can load the variables and eliminate the code that reads the .env file from our code.
// Use — require ( -r ) command line option to preload dotenv.
// The following command will preload all environment variables from the
// file .env using dotenv and make them available in your app.
const dotenv = require("dotenv");
dotenv.config();
module.exports = {
PORT: process.env.PORT,
CONSUMER_KEY: process.env.CONSUMER_KEY,
CONSUMER_SECRET: process.env.CONSUMER_SECRET,
ACCESS_TOKEN: process.env.ACCESS_TOKEN,
ACCESS_TOKEN_SECRET: process.env.ACCESS_TOKEN_SECRET
};