use Environment to find user platform url

important because of the toggle-style publishing...