Created
January 18, 2019 14:39
-
-
Save dimitrisdovinos/b6add15623f6565e71e2ffc7af2a805e to your computer and use it in GitHub Desktop.
This file contains 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
const path = require('path'); | |
const dotEnvPath = path.resolve('./.env'); | |
const dotenv = require('dotenv').config({ path: dotEnvPath }); | |
const config = {}; | |
config.secret = process.env.SECRET; | |
config.port = process.env.PORT || 3001; | |
config.cognito = {}; | |
config.cognito.idenityPoolId = process.env.COGNITO_IDENTITY_POOL_ID; | |
config.cognito.clientId = process.env.COGNITO_CLIENT_ID; | |
config.cognito.clientIdForSignUp = process.env.COGNITO_CLIENT_ID_FOR_SIGN_UP; | |
config.cognito.secret = process.env.COGNITO_SECRET; | |
config.cognito.domainUrl = process.env.COGNITO_DOMAIN; | |
config.cognito.redirectCallback = process.env.COGNITO_CALLBACK_URL; | |
config.cognito.cognitoPoolId = process.env.COGNITO_POOL_ID; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment