{"action":"created","issue":{"url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/250","repository_url":"https://api.github.com/repos/choonkending/react-webpack-node","labels_url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/250/comments","events_url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/250/events","html_url":"https://github.com/choonkending/react-webpack-node/issues/250","id":157874167,"number":250,"title":"Can't set api inside server.jsx","user":{"login":"IljaDaderko","id":3154053,"avatar_url":"https://avatars.githubusercontent.com/u/3154053?v=3","gravatar_id":"","url":"https://api.github.com/users/IljaDaderko","html_url":"https://github.com/IljaDaderko","followers_url":"https://api.github.com/users/IljaDaderko/followers","following_url":"https://api.github.com/users/IljaDaderko/following{/other_user}","gists_url":"https://api.github.com/users/IljaDaderko/gists{/gist_id}","starred_url":"https://api.github.com/users/IljaDaderko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IljaDaderko/subscriptions","organizations_url":"https://api.github.com/users/IljaDaderko/orgs","repos_url":"https://api.github.com/users/IljaDaderko/repos","events_url":"https://api.github.com/users/IljaDaderko/events{/privacy}","received_events_url":"https://api.github.com/users/IljaDaderko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-01T10:30:44Z","updated_at":"2016-06-04T09:49:45Z","closed_at":null,"body":"I'm trying to configure axios to use my own api via:\r\n\r\n```\r\nconst clientConfig = {\r\n  host: 'staging-api.myapp.io/v1',\r\n  port: '443'\r\n}\r\n\r\n// configure baseURL for axios requests (for serverside API calls)\r\naxios.defaults.baseURL = `https://${clientConfig.host}:${clientConfig.port}`\r\n```\r\n\r\nAnd call it inside actions like so:\r\n\r\n```\r\nreturn request({\r\n      method: 'post',\r\n      url: '/waiting-list',\r\n      data: {\r\n        email,\r\n        referral_code: refCode\r\n      }\r\n})\r\n```\r\n\r\nbut all requests go to localhost:3000/waiting-list not sure entirely to what I am doing wrong"},"comment":{"url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/comments/223747075","html_url":"https://github.com/choonkending/react-webpack-node/issues/250#issuecomment-223747075","issue_url":"https://api.github.com/repos/choonkending/react-webpack-node/issues/250","id":223747075,"user":{"login":"IljaDaderko","id":3154053,"avatar_url":"https://avatars.githubusercontent.com/u/3154053?v=3","gravatar_id":"","url":"https://api.github.com/users/IljaDaderko","html_url":"https://github.com/IljaDaderko","followers_url":"https://api.github.com/users/IljaDaderko/followers","following_url":"https://api.github.com/users/IljaDaderko/following{/other_user}","gists_url":"https://api.github.com/users/IljaDaderko/gists{/gist_id}","starred_url":"https://api.github.com/users/IljaDaderko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IljaDaderko/subscriptions","organizations_url":"https://api.github.com/users/IljaDaderko/orgs","repos_url":"https://api.github.com/users/IljaDaderko/repos","events_url":"https://api.github.com/users/IljaDaderko/events{/privacy}","received_events_url":"https://api.github.com/users/IljaDaderko/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T09:49:45Z","updated_at":"2016-06-04T09:49:45Z","body":"@MsUzoAgu No, waiting for reply here for any ideas of what could be causing the issue. You came across it as well? "}}
{"actor":{"display_login":"IljaDaderko"}}