File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11NODE_ENV = development
22MONGODB_URI = mongodb://localhost:27017/test
33SERVER_URL = http://localhost:3000/
4- PORT = 3000
4+ PORT = 3000
5+ JWT_KEY = ' MXvTnOhWYMYgYiFnBFRfX4Fnd4ZkXLK8qYU'
Original file line number Diff line number Diff line change 11NODE_ENV = production
22MONGODB_URI = mongodb://<production_db_url>:27017/test_prod
33SERVER_URL = https://production.yourapi.com/
4- PORT = 3000
4+ PORT = 3000
5+ JWT_KEY = ' MXvTnOhWYMYgYiFnBFRfX4Fnd4ZkXLK8qYU'
Original file line number Diff line number Diff line change 11NODE_ENV = staging
22MONGODB_URI = mongodb://<staging_db_url>:27017/test_staging
33SERVER_URL = https://staging.yourapi.com/
4- PORT = 3000
4+ PORT = 3000
5+ JWT_KEY = ' MXvTnOhWYMYgYiFnBFRfX4Fnd4ZkXLK8qYU'
Original file line number Diff line number Diff line change 11export const jwtConstants = {
2- secret :
3- 'MXvTnOhWYMYgYiFnBFRfX4Fnd4ZkXLK8qYU' ,
2+ secret :process . env . JWT_KEY ,
43} ;
You can’t perform that action at this time.
0 commit comments