Dotenv.toml

Define the rules for your environment variables

Advanced

A Dotenv.toml contains variable names and rules. Values stay in your .env files or other environment sources. It is safe to commit.

Start with the Dotenv.toml quickstart, then explore each declaration and setting below.


strict = true

[env.DATABASE_URL]
type = "url"
required = true
storage = "encrypted"
redacted = true

[env.PORT]
type = "port"
storage = "plaintext"
redacted = false

Reference

markdown