Blog.

Don't Reinvent the Wheel

Shlok Sheth
Shlok Sheth
10 views

I can write anything, currently, I am trying to add the view count on my sanity blog node app. Do not reinvent the wheel, start using templates and adding new features over those, the template I am using is from Vercel, it is a next js sanity app, but then to add a new feature, I have added a view counter to my app. it was simple, although I had to understand the structure of node app. Consider how the app posts the requests and fetches them. Carefully changed the code on a new branch and published the changes. Here is the screenshot of what was before:

This is the image of how the Blog template was before
Before

You can see how this website looks now! It has an EYE icon and with the appropriate amount of views, these are unique views from unique readers. I have changed the schema, PostHeader, PostPage, MoreStories, and other pages that render this information on the node app


More Stories

2 views

Use your computer to deploy apps

Shlok Sheth
Shlok Sheth
13 views