@natoboram/load_env
    Preparing search index...

    Function loadEnv

    • Loads environment variables from the .env files. NODE_ENV has to be set in the environment and will not be picked up from the filesystem.

      If NODE_ENV is not set, it defaults to development.

      Environment variables are loaded in the following order:

      1. .env.${NODE_ENV}.local
      2. .env.${NODE_ENV}
      3. .env.local
      4. .env

      Parameters

      • Optionaloptions: LoadEnvOptions

        Additional options to be passed to dotenv.config where path is where to find .env files.

      Returns LoadedEnv