Skip to content

A Canvas-less demo using Uniform Conf that works with Sanity v3

Notifications You must be signed in to change notification settings

uniformdev/uniformconf-context-sanity

Repository files navigation

UniformConf demo for Sanity

Prerequisites

You have to install, import content and start Sanity Studio.

Getting Started

First, you need provide API keys to connect with empty Uniform App project and your Sanity studio. Copy .env.example into .env and fill all the keys.

  1. npm install to install all dependencies.
  2. npm run generate:slug-page to create slug page. Depending on the value of this environment variable, either SSG or SSR mode will be enabled (Uniform supports both):
    # Server Side Render or Static Site Generation mode?
    NEXT_USE_SSR=0
    
  3. npm run dev to start a local dev server.
  4. npm run build && npm run start to start a production server.

About

A Canvas-less demo using Uniform Conf that works with Sanity v3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published