Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace...
by isthispermanent on Thursday March 07, 2019 @02:56PM
(#19331630)
My server-side React blog (https://philandrews.io) runs on Cosmic. And it's easy. Given that your blog posts reside at the end of a url, one GET request brings gets all the content you need to populate your index or post page. Pair your React with NextJS, fetch your post(s) in getInitialProps and you're good to go.
Here's an article I wrote about opening up a blog with Cosmic back in 2017. It still holds... https://hackernoon.com/language-agnostic-content-management-...
Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace...
by tonyspiro on Thursday March 07, 2019 @02:19PM
(#19331207)
You CAN do server-side rendering. Check out our apps page to see how you can integrate dynamic content into any website or app, server or client-side: https://cosmicjs.com/apps
However, I realised that it is going to be bad for SEO as I cannot do serverside rendering this way.
I cosidered adding a WordPress blog, but eventually just ended up with a simple markdown rendering from the files - 1 file - 1 post.
If you manage to find a easy way to support serverside rendering, the product is going to be good.