{"action":"created","issue":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/172","repository_url":"https://api.github.com/repos/mxstbr/react-boilerplate","labels_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/172/comments","events_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/172/events","html_url":"https://github.com/mxstbr/react-boilerplate/issues/172","id":133581864,"number":172,"title":"WebpackDevServer should not be used in production. ","user":{"login":"aickin","id":44199,"avatar_url":"https://avatars.githubusercontent.com/u/44199?v=3","gravatar_id":"","url":"https://api.github.com/users/aickin","html_url":"https://github.com/aickin","followers_url":"https://api.github.com/users/aickin/followers","following_url":"https://api.github.com/users/aickin/following{/other_user}","gists_url":"https://api.github.com/users/aickin/gists{/gist_id}","starred_url":"https://api.github.com/users/aickin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aickin/subscriptions","organizations_url":"https://api.github.com/users/aickin/orgs","repos_url":"https://api.github.com/users/aickin/repos","events_url":"https://api.github.com/users/aickin/events{/privacy}","received_events_url":"https://api.github.com/users/aickin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-14T21:28:34Z","updated_at":"2016-02-14T21:36:41Z","closed_at":"2016-02-14T21:36:41Z","body":"Hey there, great project!\r\n\r\nI was poking around in the server code, and I noticed that both the dev and prod configurations use WebpackDevServer to serve up the application. I think that is not optimal, as the WDS documentation is pretty clear that [it should never be used in production](https://github.com/webpack/webpack-dev-server#webpack-dev-server).\r\n\r\nLuckily, this is a pretty easy thing to change; you can use the same webpack config to compile the code to a local directory and fire up an express server to serve up those static assets.\r\n\r\nCheers, and thanks for the work you do!"},"comment":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/comments/183981591","html_url":"https://github.com/mxstbr/react-boilerplate/issues/172#issuecomment-183981591","issue_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/172","id":183981591,"user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars.githubusercontent.com/u/7525670?v=3","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T21:36:41Z","updated_at":"2016-02-14T21:36:41Z","body":"He @aickin, glad to hear you like the boilerplate!\r\n\r\n`server.prod.js` gets started with `npm run serve`, it runs the website locally and tunnels it through `ngrok` so it's available and can be tested on the entire internet. I'm pretty sure nobody uses that in production. Thanks for your concern!"}}