Skip to main content

EnvironmentHelper

The EnvironmentHelper class offers functionality to load dot-env files.

import { EnvironmentHelper } from '@archibald/server';

load

This method tries to load a dot-env file with the current environment first and falls back to a default dot-env file. After executing this function all the Environment Variables are available on process.env

import { EnvironmentHelper } from '@archibald/server';

EnvironmentHelper.load(PARAMETERS);

Parameters

NameTypeDescription
environmentstringThe currently used Environment.