{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/55","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/55/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/55/events","html_url":"https://github.com/parcel-bundler/parcel/issues/55","id":279865504,"number":55,"title":"Proxy","user":{"login":"webular","id":154551,"avatar_url":"https://avatars0.githubusercontent.com/u/154551?v=4","gravatar_id":"","url":"https://api.github.com/users/webular","html_url":"https://github.com/webular","followers_url":"https://api.github.com/users/webular/followers","following_url":"https://api.github.com/users/webular/following{/other_user}","gists_url":"https://api.github.com/users/webular/gists{/gist_id}","starred_url":"https://api.github.com/users/webular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webular/subscriptions","organizations_url":"https://api.github.com/users/webular/orgs","repos_url":"https://api.github.com/users/webular/repos","events_url":"https://api.github.com/users/webular/events{/privacy}","received_events_url":"https://api.github.com/users/webular/received_events","type":"User","site_admin":false},"labels":[{"id":663703613,"url":"https://api.github.com/repos/parcel-bundler/parcel/labels/%23Question","name":"#Question","color":"0000ff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-06T18:51:25Z","updated_at":"2017-12-12T21:46:07Z","closed_at":"2017-12-07T06:31:13Z","author_association":"NONE","body":"Is there a way to define a proxy?  In webpack we are doing something like this: \r\n\r\n```\r\ndevServer: {\r\n  proxy: {\r\n   '/api*' :{\r\n      target: 'http://localhost:3001/graphql',\r\n      secure: false,\r\n    },\r\n}\r\n```\r\n\r\n[More details about webpack's devserver proxy here.](https://webpack.js.org/configuration/dev-server/#devserver-proxy)"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/351205092","html_url":"https://github.com/parcel-bundler/parcel/issues/55#issuecomment-351205092","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/55","id":351205092,"user":{"login":"tb","id":71683,"avatar_url":"https://avatars2.githubusercontent.com/u/71683?v=4","gravatar_id":"","url":"https://api.github.com/users/tb","html_url":"https://github.com/tb","followers_url":"https://api.github.com/users/tb/followers","following_url":"https://api.github.com/users/tb/following{/other_user}","gists_url":"https://api.github.com/users/tb/gists{/gist_id}","starred_url":"https://api.github.com/users/tb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tb/subscriptions","organizations_url":"https://api.github.com/users/tb/orgs","repos_url":"https://api.github.com/users/tb/repos","events_url":"https://api.github.com/users/tb/events{/privacy}","received_events_url":"https://api.github.com/users/tb/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T21:46:07Z","updated_at":"2017-12-12T21:46:07Z","author_association":"NONE","body":"@devongovett I always use [create-react-app proxy](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#proxying-api-requests-in-development) This allows me to use relative urls like `/api/endpoint` / `/graphql`. The same urls work then after deployment to production server."}}
{"actor":{"display_login":"tb"}}