Resolving endpoint based on options rather than NODE_ENV.
0.5.1