Skip to content

ibarjma/gatsby-portfolio-preview-poc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatsby Portfolio Studio with sample previews

This is a Sample Studio which showcases a few interesting ways to preview your content. The Studio itself is based off the Portfolio with Gatsby template.

👉 Read our blog post about previews.

👉 Learn more about the example previews in the Studio’s Readme.md.


gatsby-portfolio-preview-poc

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 in development

  1. Go to your project’s API settings on manage.sanity.io and create a token with read rights.
  2. Copy .env.development.template 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 disable the 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 the master branch on GitHub. If you want to change the deployment branch you may do so in build & deploy settings on Netlify.

Get help

Slack Community Button

Join Sanity’s developer community or ping us on twitter.

About

Gatsby Portfolio Preview POC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.2%
  • CSS 18.8%