Skip to content
Snippets Groups Projects
Commit e213d196 authored by michael.minelli's avatar michael.minelli
Browse files

Env file => Load from a relative path (for work with pkg)

parent c6edf7a6
No related branches found
No related tags found
No related merge requests found
Pipeline #25041 passed
// Read from the .env file
// ATTENTION : This line MUST be the first of this file
require('dotenv').config();
// ATTENTION : This line MUST be the first of this file (except for the path import)
const path = require('node:path');
require('dotenv').config({ path: path.join(__dirname, '../.env') });
import CommanderApp from './commander/CommanderApp';
import HttpManager from './managers/HttpManager';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment