All Projects → hafffe → nextjs-sanity-template

hafffe / nextjs-sanity-template

Licence: other
Starter Sanity + Next.js

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to nextjs-sanity-template

learnwithjason.dev
Boop Crew HQ
Stars: ✭ 101 (+359.09%)
Mutual labels:  jamstack
COVID-19-STAT
A web application to keep track of COVID-19 numbers & growth across the world
Stars: ✭ 19 (-13.64%)
Mutual labels:  jamstack
hugo-theme-massively
Massively theme for Hugo static site generator
Stars: ✭ 113 (+413.64%)
Mutual labels:  jamstack
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (+45.45%)
Mutual labels:  jamstack
sutanlab.id
☕️ My Personal Homepage & Blog site with NextJS. 🇺🇸 🇮🇩
Stars: ✭ 39 (+77.27%)
Mutual labels:  jamstack
functions.netlify.com
Tutorials, examples, workshops and a playground for serverless with Netlify Functions
Stars: ✭ 498 (+2163.64%)
Mutual labels:  jamstack
sanity-gatsby-portfolio
A Gatsby portfolio site powered by Sanity.io. Watch it get built live:
Stars: ✭ 16 (-27.27%)
Mutual labels:  sanity-io
gatsby-starter-developer-diary
An official Gatsby blog template designed for web developers. Blazing fast, it includes beautful web developer topic tags and social-media links
Stars: ✭ 76 (+245.45%)
Mutual labels:  jamstack
snipcart-gatsby-grav
Grav as Headless CMS Tied to Gatsby with GraphQL Schema
Stars: ✭ 27 (+22.73%)
Mutual labels:  jamstack
sanity-super-pane
The Sanity Desk Tool Pane with Super Powers
Stars: ✭ 90 (+309.09%)
Mutual labels:  sanity-io
nuxt-cockpit
A Tutorial to Bundle Cockpit CMS & Nuxt.js in a full JAMstack
Stars: ✭ 45 (+104.55%)
Mutual labels:  jamstack
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+1059.09%)
Mutual labels:  jamstack
agilitycms-eleventy-starter-2020
A sample Eleventy starter that uses Agility CMS and aims to be a foundation for building fully static sites using 11ty and Agility CMS.
Stars: ✭ 18 (-18.18%)
Mutual labels:  jamstack
sanity-portfolio-studio
A Sanity.io instance that powers a Gatsby portfolio site. Watch it get built live:
Stars: ✭ 14 (-36.36%)
Mutual labels:  sanity-io
netlify-stripe-subscriptions
An example of managing subscriptions with the Stripe Customer Portal and Netlify Identity.
Stars: ✭ 96 (+336.36%)
Mutual labels:  jamstack
Portfolio
A Next.js & Material UI portfolio that stylizes markdown files from the GitHub API and Contentful CMS.
Stars: ✭ 18 (-18.18%)
Mutual labels:  jamstack
thvu-blog
My digital home on the internet.
Stars: ✭ 51 (+131.82%)
Mutual labels:  jamstack
site
🏁📑 Static site generator for landing pages, docs, and more
Stars: ✭ 31 (+40.91%)
Mutual labels:  jamstack
magic-admin-js
Magic admin Node.js SDK makes it easy to leverage Decentralized ID tokens to protect routes and restricted resources for your application.
Stars: ✭ 62 (+181.82%)
Mutual labels:  jamstack
crisp-react
React boilerplate written in TypeScript with a variety of Jamstack and full stack deployments. Comes with SSR and without need to learn a framework. Helps to split a monolithic React app into multiple SPAs and avoid vendor lock-in.
Stars: ✭ 147 (+568.18%)
Mutual labels:  jamstack

NEXT.JS - SANITY TEMPLATE

  • Uses Chakra as component library
  • next-sanity for query sanity with GROQ and previews
  • typescript
  • Next-seo for good SEO optimization

Setup Vercel

Import the project in vercel Setup following environment variables (as plain text variables)

SANITY_STUDIO_API_DATASET with value for your prefered dataset SANITY_STUDIO_API_PROJECT_ID with your sanity project id NEXT_PUBLIC_SANITY_PROJECT_ID with value for your prefered dataset NEXT_PUBLIC_SANITY_DATASET with your sanity project id

Setup for local development

Create .env file in root path with the environment variables

# For Sanity Locally
# SANITY_STUDIO_API_PROJECT_ID = "abcd1245"
# SANITY_STUDIO_API_DATASET = "production"

# For Next Locally
NEXT_PUBLIC_SANITY_PROJECT_ID = "abcd1245"
NEXT_PUBLIC_SANITY_DATASET = "production"

Create .env.development and .env.production in studio path and add sanity variables

# For Sanity Locally
# SANITY_STUDIO_API_PROJECT_ID = "abcd1245"
# SANITY_STUDIO_API_DATASET = "production"

Development

To Start development server:

npm run dev

This will run frontend at localhost:3000 and you will find sanity studio at localhost:3000/studio

If you care for automatic reloads for the studio use localhost:3333/studio instead

Add http://localhost:3000 in sanity settings -> api - CORS Origins

Things to know

Frontend startpage is fetched with slug frontpage

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].