🔧 Environment Variable Types

Demonstrating how Wrangler handles different data types

APP_NAME
String
My Awesome App (via Terraform)
JS Type: string
TOML: APP_NAME = "..."
API_URL
String
https://api.example.com
JS Type: string
TOML: API_URL = "..."
MAX_RETRIES
Number
3
JS Type: number
TOML: MAX_RETRIES = 3
ENABLE_FEATURE
Boolean
true
JS Type: boolean
TOML: ENABLE_FEATURE = true
TIMEOUT_MS
Number
5000
JS Type: number
TOML: TIMEOUT_MS = 5000
ALLOWED_ORIGINS
Array
https://example.com,https://app.example.com,https://api.example.com
JS Type: object
Array.isArray(): true
TOML: ALLOWED_ORIGINS = ["..."]
CONFIG
Object
{
  "language": "en",
  "maxItems": 11,
  "theme": "dark"
}
JS Type: object
TOML: CONFIG = {"..."}