Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Type Method

load(path:)

Reads the dotenv files relevant to the environment and loads them into the process.
static func load(path: String) async

Parameters

path

Absolute or relative path of the dotenv file.

Discussion

let path: String
try DotEnvFile.load(path: path)
print(Environment.process.FOO) // BAR