Skip to content

@saflib/env


index ​

Functions ​

FunctionDescription
isDevelopmentDeploymentWhether the deployment is local development (DEPLOYMENT_NAME=development).
validateEnvGiven process.env and a schema, validate the environment variables. Throws an error if the environment variables are invalid. Run this when your service starts to ensure typedEnv conforms to the schema.

References ​

EnvEnvSchema ​

Re-exports EnvEnvSchema


typedEnv ​

Re-exports typedEnv