Implements  placeholder replacing based on env flag during runtime