File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const { v4 } = require('uuid');
55const ApplicationStorage = require ( './storage' )
66
77var poolData = {
8- UserPoolId : 'us-east-1_UAf0SxZ5c' ,
9- ClientId : '72nrnku0iajiqlahhvkvhqgln2' ,
8+ UserPoolId : process . env . COGNITO_USERPOOL_ID || 'us-east-1_UAf0SxZ5c' ,
9+ ClientId : process . env . COGNITO_CLIENT_ID || '72nrnku0iajiqlahhvkvhqgln2' ,
1010 Storage : ApplicationStorage
1111} ;
1212var userPool = process . env . ENABLE_TRACKING_DATA_FOR_ANALYTICS ? new AmazonCognitoIdentity . CognitoUserPool ( poolData ) : null ;
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ var AWS = require('aws-sdk');
22const { exec } = require ( 'child_process' ) ;
33const { v4 } = require ( 'uuid' ) ;
44const ApplicationStorage = require ( './storage' )
5- const COGNITO_PINPOINT_APPID = '4c6b346287ab4e86a284a88e46352738'
6- const COGNITO_IDENTITY_POOL_ID = 'us-east-1:9e72cdc0-12d9-471c-ba71-a6a20e6e15ab'
7- const COGNITO_PINPOINT_REGION = 'us-east-1'
5+ const COGNITO_PINPOINT_APPID = process . env . COGNITO_PINPOINT_APPID || '4c6b346287ab4e86a284a88e46352738'
6+ const COGNITO_IDENTITY_POOL_ID = process . env . COGNITO_IDENTITY_POOL_ID || 'us-east-1:9e72cdc0-12d9-471c-ba71-a6a20e6e15ab'
7+ const COGNITO_PINPOINT_REGION = process . env . COGNITO_PINPOINT_REGION || 'us-east-1'
88
99function getCognitoCredentials ( ) {
1010 const cognitoIdentity = new AWS . CognitoIdentity ( { region : COGNITO_PINPOINT_REGION } ) ;
Original file line number Diff line number Diff line change 11const path = require ( 'path' )
22const fs = require ( 'fs' )
3- const FILE_STORAGE = '.storage'
3+ const FILE_STORAGE = process . env . LOCAL_CONFIGURATION_STORAGE || '.storage'
44if ( ! fs . existsSync ( path . resolve ( __dirname , FILE_STORAGE ) ) ) {
55 fs . mkdirSync ( path . resolve ( __dirname , FILE_STORAGE ) )
66}
You can’t perform that action at this time.
0 commit comments