Change yaml config load to load only in dev environment.