Switch between Local and CDN assets based on environment