https://github.com/ascorbic/gatsby-sanity-benchmark
https://github.com/ascorbic/gatsby-sanity-benchmark
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ascorbic/gatsby-sanity-benchmark
- Owner: ascorbic
- License: mit
- Created: 2022-05-30T10:18:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-30T11:12:42.000Z (over 3 years ago)
- Last Synced: 2025-01-23T14:38:18.175Z (about 1 year ago)
- Language: JavaScript
- Size: 223 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sanity Will it Build Example
Example page for Sanity as a source for "Will It Build".
Should/Will be generalized into e.g. a theme.
Queries the title, body and a cover image from Sanity. Creates pages for that and displays those three things as "Articles".
Those individual article pages and the homepage share a common "Layout" component (in src/components) that can be swapped (layout_1.js and layout_2.js) to simulate a code change in multiple pages.
## Update script
Make sure to add the environment variables in the `.env.example` file. To run the update script, you need to add a write token as well.
```
yarn update-post
```