import * as envalid from 'envalid'; const { str, bool } = envalid; export const config = envalid.cleanEnv(process.env, { /** start */ NODE_ENV: str({ default: 'production', choices: ['production', 'staging', 'development', 'test'] }), /** end */ });