TestGatsbySanity
Find a file
2019-07-13 15:47:25 +00:00
studio Initial commit 2019-05-09 10:15:41 -05:00
web updated 2019-07-13 15:47:25 +00:00
.editorconfig Initial commit 2019-05-09 10:15:41 -05:00
.gitignore Initial commit 2019-05-09 10:15:41 -05:00
lerna.json Initial commit 2019-05-09 10:15:41 -05:00
package.json updated 2019-07-13 15:47:25 +00:00
README.md Initial commit 2019-05-09 10:15:41 -05:00

TestGatsbySanity

A portfolio using structured content and a static site builder.

Deployed from sanity.io/create.

What you have

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

Enable real-time content preview on development

  1. Go to your projects API settings on manage.sanity.io and create a token with read rights.
  2. Rename .env.development.tenplate to .env.development and paste in the token: SANITY_READ_TOKEN="yourTokenHere".
  3. Restart the development server (ctrl + C and npm run dev).

If you want to turn off preview you can set watchMode: false in gatsby-config.js. If you just want to preview published changes you can set overlayDrafts: false in gatsby-config.js.

Deploy changes

Netlify automatically deploys new changes commited to master on GitHub. If you want to change deployment branch, do so in build & deploy settings on Netlify.

Stuck? Get help

Slack Community Button

Join Sanitys developer community or ping us on twitter.