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 with their --https option. But nada with preact serve.
On 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 to fix it.