Skip to content
Snippets Groups Projects
Commit 19e55042 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add dotenv in configService

parent 06ce38ff
No related branches found
No related tags found
1 merge request!6Version 1.2.4
Pipeline #2438 passed
import * as dotenv from 'dotenv';
import { config } from './config';
export class ConfigService {
private _config = config;
constructor() {
dotenv.config();
// Initializing conf with values from var env
this._config.smtpConfig.host = process.env.SMTP_HOST;
this._config.smtpConfig.port = process.env.SMTP_PORT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment