Types

Validate values before your app starts

Dotenv.toml

Types validate environment values, which remain strings. The default type is "string".


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

[env.DATABASE_URL]
type = "url"

Choose a type below. Numeric types also support inclusive min and max bounds.

Types

markdown