bevry / staticsitegenerators-website

Website containing the complete listing of static site generators
https://staticsitegenerators.net
Other
364 stars 29 forks source link

Rewrite website a now.sh dynamic cloud function with heavy caching #30

Closed balupton closed 5 years ago

balupton commented 5 years ago

The website should be rewritten with now.sh v2, and be a single cloud function https://zeit.co/docs/v2/deployments/official-builders/node-js-now-node/

Can use https://github.com/hyperhype/hyperscript or https://github.com/developit/htm to accomplish this.

In the future, a next.js site may make more sense as more features are added. But for the simple website as it is now, a single .js function with some render code and inlined styles and unpkg use is all that is needed. The tech can be quibled over.

Moving to a cloud function solves the fragile dual repo setup, and allows us to make use of the npm package, or the cdn version of the npm package https://www.unpkg.com/staticsitegenerators@2/out.json

balupton commented 5 years ago

Progress made at: https://github.com/bevry/staticsitegenerators-website/tree/dev-zeit

Working locally, however deployment is failing: https://spectrum.chat/zeit/general/unable-to-import-module-now-launcher-error~2662f0ba-4186-402f-b1db-2e3c43d8689a?m=MTU0NTEyNjk4ODE3Mw==

balupton commented 5 years ago

Got a recommended workaround going. Site is live on staging. Will be going to master and live soon.

balupton commented 5 years ago

Alright, all done https://staticsitegenerators.net