Replace process env with configuration variables. Fix code variable.