Set correct ENV during preload