top | item 19331183

(no title)

laurynas-s | 7 years ago

I was looking something like this when I wanted to add a blog for my React SPA apps. I didn't want WordPress, but I wanted a simple backend just for editing the blog posts.

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.

discuss

order

isthispermanent|7 years ago

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-...

tonyspiro|7 years ago

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

Geee|7 years ago

I think you should use static site generator such as gatsbyJS. It's even better than server-side rendering.