Hacker News new | ask | show | jobs
by vinaygaba 2070 days ago
I think a lot of people assume that Jamstack sites need to be static sites through and through. I don't think this is realistic and you will be overcomplicating things for yourself if you try to do this. For things that don't change often, having a static site has obvious benefits and Jamstack is well suited to build those parts of your site. For user generated content, you are better off just storing it somewhere else and loading it dynamically.
2 comments

It would be interesting to have a dynamic page for the most recent blog post which 'compiles' to a static web page subsequently. So comments are live for a while, but then become static content after the post goes off the front page.

Whole classes of spam prevented...

Who assumes this? This seems to be the JavaScript-bootcamp-I’m-a-coder-now crowd who don’t really understand their tools
For the (perhaps small) set of users who keep javascript disabled in their browser, I think it's fair to say that a Jamstack site gives them a thoroughly static experience.