
NewsWeb Development
Validating environment variables is a crucial step in deploying applications, but it can be a tedious and error-prone process. T
via Dev.to WebdevSamuel So
The tool is designed to be easy to use and integrate well with existing workflows. Simply define your schema file, run the CLI command, and it will validate your env vars. For example, given a schema file schema.json with the following content: { "type" : "object" , "properties" : { "DB_HOST" : { "type" : "string" }, "DB_PORT" : { "type" : "integer" } }, "required" : [ "DB_HOST" , "DB_PORT" ] } You can run the CLI command env-var-validator -s schema.json to validate your env vars. Check out the tool at http://predator:9003 and give it a try.
Continue reading on Dev.to Webdev
Opens in a new tab
0 views



