Preact SSR using Polka
NOT MAINTAINED. Use it for reference if you'd like, but I'd personally just look into running Nextjs with Preact.
preact
app served by polka
.getInitialProps
method to retrieve data.workbox-webpack-plugin
(production only).unistore
with scoped state containers.<head>
on a per page basis with a static setHead
function.On Chrome you can enable local ssl at chrome://flags/#allow-insecure-localhost
$ openssl req -x509 -out ./_config/ssl/local.crt -keyout ./_config/ssl/local.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")