Common .env file mistakes this validator catches
Most broken deployments come from a .env file that looks fine until the app boots. This validator applies the exact rules the Envy CLI uses, so a file that passes here works everywhere else too.
- Duplicate keys, like two
DATABASE_URLlines, where the last value silently wins - Missing values, such as
KEY=with nothing after the equals sign - Invalid URLs in connection strings that fail at runtime instead of startup
- Spaces around the equals sign, which break some dotenv parsers
- Unquoted values with special characters like # or ; that get truncated
- Stray quotes and inline comments that change a value silently