     else  ''
 
   urlParts =
-    host      : 'localhost'
+    hostname  : if KONFIG.environment is 'dev' then 'dev.koding.com' else 'localhost'
     port      : ':8090'
     route     : ''
     protocol  : 'http://'


  if requestParams.body
    # after deep extending object, encodes body param to a query string
    requestParams.body    = querystring.stringify requestParams.body

  return requestParams


  url =
    urlParts.protocol +
    getSubdomain(urlParts.subdomain) +
    urlParts.hostname +
    urlParts.port +
    getRoute(urlParts.route)

