deno_blog icon indicating copy to clipboard operation
deno_blog copied to clipboard

[Request] add static building

Open tristan-f-r opened this issue 2 years ago • 4 comments

Given that (at some point) the deno blog isn't fetching dynamic data but rather a website for all users, the deno blog should be able to generate static files.

tristan-f-r avatar Jan 18 '23 12:01 tristan-f-r

Very much agree. The project could stick with the default SSR strategy, but give the option to build the site into static files. The performance would be much improved.

It's kinda annoying and detrimental, for example, that the avantar picture has to be downloaded every time the home page is hit.

Felipe-53 avatar Jan 18 '23 13:01 Felipe-53

We could split the current BlogSettings interface into 3: BaseBlogSettings, BuildBlogSettings, and ServeBlogSettings (or similar naming -- we shouldn't bikeshed on this), given that the current settings takes in middleware fields and some may be untranslatable to a dev server.

tristan-f-r avatar Jan 18 '23 13:01 tristan-f-r

Also in need of a solution for static generation here. Any ideas how it would be architected? Could it be a middleware? Part of the blog config options? A separate mirror process all together? Any good examples out there already we could follow?

Given some direction, maybe I could hack something together...

mandric avatar Apr 12 '23 17:04 mandric

Or probably just make more sense to use lume or something...

mandric avatar Apr 12 '23 18:04 mandric