Skip to content

Commit

Permalink
Changed env
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayMahajan committed Aug 10, 2023
1 parent eb3e0b9 commit 8ab819d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# AUTH_API = "http://localhost:8080"
## PROD
AUTH_API = "https://key-hse.ue.r.appspot.com/"
MONGO_URI = "mongodb+srv://lucky:[email protected]/ClubData?retryWrites=true&w=majority"
6 changes: 3 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
const client = new SecretManagerServiceClient() */
const dotenv = require('dotenv')
dotenv.config()
const mongoURL = process.env.MONGO_URI
//const mongoURL = process.env.MONGO_URI
exports.config = {}

exports.setConfig = async () => {
/*

try{
const [unParsed] = await client.accessSecretVersion({name: 'projects/hse-clubs/secrets/MONGO_URI/versions/latest'})

Expand All @@ -16,7 +16,7 @@ exports.setConfig = async () => {

} catch(err) {
console.log(err)
} */
}

exports.config.MONGO_URI = mongoURL
}

0 comments on commit 8ab819d

Please sign in to comment.