This library allows Racket applications to override their environment variables with a .env
file.
To load .env
, require the package and invoke it:
(require dotenv)
(dotenv-load!)
To use the lightweight library-only version without documentation or test dependencies, use dotenv-lib
instead.
To use multiple files, use path-string?
rest arguments:
(require dotenv)
(dotenv-load! "database.env" "api.env")
More details in the official documentation.