Blogs not reflecting
ShivamBunge opened this issue · 4 comments
I deployed the template as per the instructions but I see no blogs being reflected on the hosted version
When I cloned the repo locally i see this error
I guess this is related to env variables not being properly set.
I have used .env.local.example and also tried fetching variables from vercel. Both of them arent working
You'll need to either import the demo content or add your own content before the data is even visible.
For localhost issue, can you try upgrading next-sanity plugin to v5? npm i next-sanity@latest
@surjithctly
Thanks.. it worked now
Glad to hear that.
So what happened the issue and how you resolved? It will help other people who have similar issue as well.
It was a dependency issue only. I checked the build logs and deleted pnpm lock file. Locally it got resolved after installing latest version of sanity mentioned in your answer.
Thank you