elmaanum / sanity-gatsby-wa-portfolio

Whitten-Associates-Sanity
0 stars 0 forks source link

Whitten Associates Website

Main website for Whitten Associates. [TEST UPDATE]

Frameworks / Stack

Initially created from template project sanity.io/create.

Quick start

  1. Clone this repository from your GitHub account
  2. npm install in the project root folder on local
  3. npm run dev to start the Studio and frontend locally
  4. npm run build to build to production locally

Architecture and Deploy

Architecture

Front End

Front end updates are deployed automatically through the dev team processes:

Schema

All environments share a single Sanity dataset! Due to this, schema changes need to be handled as follows:

  1. Modifying/Deleting: Do not do this! (if necessary a migration plan needs to be discussed)
  2. Adding: Please advise other team members if any new elements are created for the schema.

When updating the schema, two main actions need to be performed:

  1. Sanity Studio: schema for each all deploy locations needs to be updated (handled through normal deploy process)
  2. Sanity GraphQL API: the single API, hosted by Sanity, needs to be updated. To do this:
    1. Navigate to the Sanity project directory
    2. Ensure the local schema is set as desired
    3. Run command sanity graphql deploy

Content

Content is managed via the Sanity Studio. Since there is a single dataset for all environments it doesn't matter from which deployment the content is modified.