Whitten Associates Website
Main website for Whitten Associates. [TEST UPDATE]
Frameworks / Stack
Initially created from template project sanity.io/create.
Quick start
- Clone this repository from your GitHub account
npm install
in the project root folder on local
npm run dev
to start the Studio and frontend locally
npm run build
to build to production locally
Architecture and Deploy
![Architecture](https://github.com/elmaanum/sanity-gatsby-wa-portfolio/raw/production/arch_deploy.png)
Front End
Front end updates are deployed automatically through the dev team processes:
- Staging: A "Deploy Preview" will be built and hosted on Netlify upon creation of a PR in the GitHub repo.
- Production: Any merge into the Production branch will trigger a deployment to Production for that branch.
Schema
All environments share a single Sanity dataset! Due to this, schema changes need to be handled as follows:
- Modifying/Deleting: Do not do this! (if necessary a migration plan needs to be discussed)
- 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:
- Sanity Studio: schema for each all deploy locations needs to be updated (handled through normal deploy process)
- Sanity GraphQL API: the single API, hosted by Sanity, needs to be updated. To do this:
- Navigate to the Sanity project directory
- Ensure the local schema is set as desired
- 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.