Better localhost dev handling