switch conf based on env + provide settings to FIF js