use localhost when not in default dev mode