Re:The ideal tech stack for a personal developer blog in 2020
by dan_can_code on Tuesday May 26, 2020 @11:11AM
(#23312134)
As another user mentioned, Next.js has a 'next build' command that creates a HTML build at build time. But it also provides server-side rendering by default.
Next.js also provides a very useful function: getStaticProps. This function will be called at build time - and will provide your (now static) build with dynamic data! It's pretty cool.
Re:The ideal tech stack for a personal developer blog in 2020
by ldeangelis on Tuesday May 26, 2020 @10:19AM
(#23311433)
I think with Next you can "build" the website (the HTML for each page is generated like it would be if it was executed in your browser) and then serve the static HTML + JS if needed, which makes for good SEO.
Re:The ideal tech stack for a personal developer blog in 2020
by metalforever on Tuesday May 26, 2020 @01:59PM
(#23314351)
If I was commissioned to make someone a blog site , quite frankly I would just install Wordpress and call it a day.
Re:The ideal tech stack for a personal developer blog in 2020
by dynamite-ready on Tuesday May 26, 2020 @03:21PM
(#23315365)
You'd be missing out, tbh.
Going down the JAM stack route provides a number of opportunities to improve on many of technical aspects common to the development of a CMS backed website.
For a start, you'll miss out on opportunities cheaper hosting with 'serverless' deployment. But I think the chance to decouple the frontend from the backend is valuable enough, fwiw.
Re:The ideal tech stack for a personal developer blog in 2020
by wolco on Tuesday May 26, 2020 @07:42PM
(#23317767)
Ironically serverless is move expensive. For a dollar month you can get wordpress hosting.
Re:The ideal tech stack for a personal developer blog in 2020
by dynamite-ready on Wednesday May 27, 2020 @03:58AM
(#23320561)
If you build a JAM stack site, many places will host it for free. GitHub most famously.
Re:The ideal tech stack for a personal developer blog in 2020
by metalforever on Friday May 29, 2020 @08:35PM
(#23357312)
Relying on free hosting for a commercial enterprise is not smart!
Re:The ideal tech stack for a personal developer blog in 2020
by alesua93 on Tuesday May 26, 2020 @11:04AM
(#23312051)
FWIW I just finished building a (very) basic blog using Gatsby (which is based on React) and SEO scores are fine. Accessibility should also be achievable, though I find that failures in that regard are usually due to developers not caring/having deadlines instead of a lack of available tools.
With the stack described as I understand it, the front-end flexibility is preferable to what the likes of what WordPress will give you, and the stack will allow a developer to decouple the CMS backend from whatever plans he or she has for the frontend.
I suppose one can complain about React all they like. I'm not the biggest fan of React, but component based rendering has it's advantages, so I can't see the issue with that choice.
The only thing I don't like, is 'JS all the way down'... Not because I hate the language (I think the language is fine, and TypeScript is overrated). But just because I'm still not quite sure what the effect on SEO and accessibility might be, when developers go 'full JS'.