denisinla / sanity-template-nextjs-landing-pages

A Sanity powered landing page builder in Next.js for https://www.sanity.io/create

Home Page:https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-nextjs-landing-pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sanity-template-nextjs-landing-pages

SEO friendly page builder in React.js. Heroes, sign-up forms and calls to action.

This template repo is used by Sanity.io to easily create deployed and configured projects through a web interface. You can test it by creating this project.

The template contains both a Sanity Studio and a front-end in Next.js. Both are deployed on Netlify.

Want to make a template for Sanity and your favourite front-end framework? We’re still maturing sanity.io/create and our APIs, but do tell us about it on slack.sanity.io.

The Sanity.io and Next.js powered landing page website

Local development

You develop the templates in /template, and review your changes in /build.

  1. Install dependencies with npm install in the root folder. This will install the template development tool that watches changes in the /template folder and output the template to /build.

  2. Run npm run dev in root folder. This will build the template files to /build. This is how the code will look for those who install the project later.

  3. Run npm install in ./build/web and sanity install in /build/studio This will install the necessary dependencies for the Next.js frontend and the Studio.

  4. Run npm run dev in ./build/web and sanity start in /build/studio. This will start the development servers for the Next.js frontend and Sanity Studio.

Notes

When developing ProjectId and dataset name can be changed in template-values-development.json

About

A Sanity powered landing page builder in Next.js for https://www.sanity.io/create

https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-nextjs-landing-pages


Languages

Language:JavaScript 77.5%Language:CSS 22.5%