Skip to content

Commit

Permalink
fix(server): mongo prod issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Sep 19, 2024
1 parent e0ab3c5 commit ee24b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/configs/mongo/mongo.config.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MongoConfig from './mongo.config';

@Config(MongoConfig, { when: 'production', override: true })
export default class MongoProdConfig extends MongoConfig {
public static readonly url = `mongodb://${process.env.MONGO_USER}:${encodeURIComponent(process.env.MONGO_PASS)}@${
public readonly url = `mongodb://${process.env.MONGO_USER}:${encodeURIComponent(process.env.MONGO_PASS)}@${
process.env.MONGO_HOST || '127.0.0.1'
}:${process.env.MONGO_PORT || 27017}/${process.env.MONGO_DB || 'thenac_paste'}`;
}

0 comments on commit ee24b83

Please sign in to comment.