{"action":"created","issue":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1016","repository_url":"https://api.github.com/repos/mxstbr/react-boilerplate","labels_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1016/labels{/name}","comments_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1016/comments","events_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1016/events","html_url":"https://github.com/mxstbr/react-boilerplate/issues/1016","id":178523275,"number":1016,"title":"route with param not work with production mode","user":{"login":"hieubq-working","id":10210253,"avatar_url":"https://avatars.githubusercontent.com/u/10210253?v=3","gravatar_id":"","url":"https://api.github.com/users/hieubq-working","html_url":"https://github.com/hieubq-working","followers_url":"https://api.github.com/users/hieubq-working/followers","following_url":"https://api.github.com/users/hieubq-working/following{/other_user}","gists_url":"https://api.github.com/users/hieubq-working/gists{/gist_id}","starred_url":"https://api.github.com/users/hieubq-working/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hieubq-working/subscriptions","organizations_url":"https://api.github.com/users/hieubq-working/orgs","repos_url":"https://api.github.com/users/hieubq-working/repos","events_url":"https://api.github.com/users/hieubq-working/events{/privacy}","received_events_url":"https://api.github.com/users/hieubq-working/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T05:05:20Z","updated_at":"2016-09-22T06:43:46Z","closed_at":null,"body":"Hi.\r\nI have some probs while deploying in production mode with route contain param\r\n\r\nI try setup route like this\r\n\r\n`{\r\n      path: '/home/:param',\r\n      name: 'login',\r\n      getComponent(nextState, cb) {\r\n        const importModules = Promise.all([\r\n          System.import('containers/LoginPage'),\r\n        ]);\r\n        const renderRoute = loadModule(cb);\r\n        importModules.then(([component]) => {\r\n          renderRoute(component);\r\n        });\r\n        importModules.catch(errorLoading);\r\n      },\r\n    }`\r\n\r\n- run with npm run start  or npm run start:production: OK\r\nI open on url : \"http://localhost:3000/home/param_value\"\r\n\r\n- deploy on surge.sh or (GO) caddy http server, nginx\r\nI open on url : \r\n\"http://localhost/home/param_value\"\r\n\"http://domain.surge.sh/home/param_value\"\r\nI got 404 error, page not found"},"comment":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/comments/248825109","html_url":"https://github.com/mxstbr/react-boilerplate/issues/1016#issuecomment-248825109","issue_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/1016","id":248825109,"user":{"login":"gihrig","id":1481063,"avatar_url":"https://avatars.githubusercontent.com/u/1481063?v=3","gravatar_id":"","url":"https://api.github.com/users/gihrig","html_url":"https://github.com/gihrig","followers_url":"https://api.github.com/users/gihrig/followers","following_url":"https://api.github.com/users/gihrig/following{/other_user}","gists_url":"https://api.github.com/users/gihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/gihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gihrig/subscriptions","organizations_url":"https://api.github.com/users/gihrig/orgs","repos_url":"https://api.github.com/users/gihrig/repos","events_url":"https://api.github.com/users/gihrig/events{/privacy}","received_events_url":"https://api.github.com/users/gihrig/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T06:43:45Z","updated_at":"2016-09-22T06:43:45Z","body":"Have seen [Server Config](https://github.com/mxstbr/react-boilerplate/blob/master/docs/general/server-configs.md) docs and sample [`/app/.nginx.conf`](https://github.com/mxstbr/react-boilerplate/blob/master/app/.nginx.conf) file?"}}
{"actor":{"display_login":"gihrig"}}