Preact Polka Ssr Save

Preact SSR using Polka

Project README

Preact/Polka SSR

NOT MAINTAINED. Use it for reference if you'd like, but I'd personally just look into running Nextjs with Preact.

Implemented

  • Isomorphic preact app served by polka.
  • Component's can use a static getInitialProps method to retrieve data.
  • Service worker using workbox-webpack-plugin (production only).
  • Wired up unistore with scoped state containers.
  • Manage <head> on a per page basis with a static setHead function.

Setting Up Local SSL

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")
Open Source Agenda is not affiliated with "Preact Polka Ssr" Project. README Source: kidqueb/preact-polka-ssr
Stars
26
Open Issues
19
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating