Skip to content

Instantly share code, notes, and snippets.

@dimitrisdovinos
Created January 18, 2019 14:39
Show Gist options
  • Save dimitrisdovinos/b6add15623f6565e71e2ffc7af2a805e to your computer and use it in GitHub Desktop.
Save dimitrisdovinos/b6add15623f6565e71e2ffc7af2a805e to your computer and use it in GitHub Desktop.
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