nextjs-blog-cms-sanity-v3
cms-site-builder
nextjs-blog-cms-sanity-v3 | cms-site-builder | |
---|---|---|
1 | 1 | |
372 | 3 | |
4.6% | - | |
9.3 | 3.9 | |
6 days ago | 9 months ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nextjs-blog-cms-sanity-v3
-
Creating a Site Builder with NextJS and Sanity CMS
With Sanity being a headless CMS, we have the freedom to render our components and style the site however we want. I'll speed through some of the logic here to get to the interesting parts (you can find the general approach in the NextJS + SanityCMS blog starter).
cms-site-builder
-
Creating a Site Builder with NextJS and Sanity CMS
This is achieved in sanity.config.ts. The previewStructurePlugin function places the 2 variants of singletons Sanity Studio sidebar and configures the preview as needed. We also need to remove them from the global "new document" button, so we pass them to singletonPlugin, then add the "open preview" button to the desired preview singletons via productionUrl. All the other documents (just pages here) go to previewDocumentNode.
What are some alternatives?
nextjs-sanity - Starter for a basic website builder where content can be defined in a headless CMS [Moved to: https://github.com/Tim-W-James/cms-site-builder]
kenaqshal-next - My personal website – Built using Next.js, TypeScript, MDX, Sanity.io and Tailwind
Journeys-Continue - Website for Journeys Continue, an Australian business for social work, disability and aged care services
chrisnowicki.io - My portfolio built with Next.js, Tailwind CSS, Sanity CMS and deployed to Vercel.
template-nextjs-personal-website - A Next.js Personal Website with a Native Authoring Experience
reviews - Student reviews for OMS courses. Built with NextJS and Typescript. Backed by Sanity CMS. Deployed on Vercel.
zod - TypeScript-first schema validation with static type inference