Dynamic configuration based on environment