{"action":"created","issue":{"url":"https://api.github.com/repos/developit/preact-cli/issues/4","repository_url":"https://api.github.com/repos/developit/preact-cli","labels_url":"https://api.github.com/repos/developit/preact-cli/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact-cli/issues/4/comments","events_url":"https://api.github.com/repos/developit/preact-cli/issues/4/events","html_url":"https://github.com/developit/preact-cli/issues/4","id":230113235,"number":4,"title":"Make `preact serve` always use default config OR remove `preact serve`","user":{"login":"scottmas","id":2257337,"avatar_url":"https://avatars1.githubusercontent.com/u/2257337?v=3","gravatar_id":"","url":"https://api.github.com/users/scottmas","html_url":"https://github.com/scottmas","followers_url":"https://api.github.com/users/scottmas/followers","following_url":"https://api.github.com/users/scottmas/following{/other_user}","gists_url":"https://api.github.com/users/scottmas/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmas/subscriptions","organizations_url":"https://api.github.com/users/scottmas/orgs","repos_url":"https://api.github.com/users/scottmas/repos","events_url":"https://api.github.com/users/scottmas/events{/privacy}","received_events_url":"https://api.github.com/users/scottmas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-19T23:39:46Z","updated_at":"2017-05-20T00:33:17Z","closed_at":null,"body":"After executing `preact build` and then running `preact serve` in the build directory, I'm always getting 404's. It works fine when I do a http server. And it even works when I use [local-web-server ](https://www.npmjs.com/package/local-web-server) with their `--https` option. But nada with `preact serve`. \r\n\r\nOn a related note, `preact serve` also seems to break http connections to localhost, since they always get redirected to https. I had to use this [SO answer](http://stackoverflow.com/a/33139466/1027138) to fix it."},"comment":{"url":"https://api.github.com/repos/developit/preact-cli/issues/comments/302838678","html_url":"https://github.com/developit/preact-cli/issues/4#issuecomment-302838678","issue_url":"https://api.github.com/repos/developit/preact-cli/issues/4","id":302838678,"user":{"login":"scottmas","id":2257337,"avatar_url":"https://avatars1.githubusercontent.com/u/2257337?v=3","gravatar_id":"","url":"https://api.github.com/users/scottmas","html_url":"https://github.com/scottmas","followers_url":"https://api.github.com/users/scottmas/followers","following_url":"https://api.github.com/users/scottmas/following{/other_user}","gists_url":"https://api.github.com/users/scottmas/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmas/subscriptions","organizations_url":"https://api.github.com/users/scottmas/orgs","repos_url":"https://api.github.com/users/scottmas/repos","events_url":"https://api.github.com/users/scottmas/events{/privacy}","received_events_url":"https://api.github.com/users/scottmas/received_events","type":"User","site_admin":false},"created_at":"2017-05-20T00:33:17Z","updated_at":"2017-05-20T00:33:17Z","body":"Yea, it does still blow up for me. Steps to reproduce:\r\n\r\n```bash\r\npreact create test-app\r\ncd test-app\r\npreact build\r\ncd build\r\npreact serve\r\n```\r\nThen load https://localhost:8080 and I get a 404. It may have worked once briefly as I recall, but then it blew up and it was also buggy. The error I get now in my console when trying to request pages is\r\n\r\n```\r\nhttp2: server: error reading preface from client [::1]:57380: read tcp [::1]:8080->[::1]:57380: read: connection reset by peer\r\n```"}}
{"actor":{"display_login":"scottmas"}}