A portfolio using structured content and a static site builder.
Deployed from sanity.io/create.
- A blazing fast portfolio with Gatsby.js
- Structured content using Sanity.io
- Global deployment on Netlify
- Clone this repository from your GitHub account
yarn
in the project root folder on local- This project uses yarn workspaces. For the best dev experience, we recommend using
yarn
- This project uses yarn workspaces. For the best dev experience, we recommend using
yarn run dev
to start the Studio and frontend locally- Your Studio should be running on http://localhost:3333
- Your frontend should be running on http://localhost:8000
yarn run build
to build to production locally
- Go to your project’s API settings on manage.sanity.io and create a token with read rights.
- Copy
.env.development.template
to.env.development
and paste in the token:SANITY_READ_TOKEN="yourTokenHere"
. - Restart the development server (
ctrl + C
andnpm 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.
Netlify automatically deploys new changes commited to the production
branch on GitHub, as well as a preview for every branch and PR.
If you want to change the deployment branch you may do so in build & deploy settings on Netlify.
Join Sanity’s developer community or ping us on twitter.