Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jesstelford/next-keystone-app
Static Sites with Next.js + KeystoneJS
https://github.com/jesstelford/next-keystone-app
Last synced: 28 days ago
JSON representation
Static Sites with Next.js + KeystoneJS
- Host: GitHub
- URL: https://github.com/jesstelford/next-keystone-app
- Owner: jesstelford
- Created: 2019-11-28T13:06:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T12:15:45.000Z (almost 2 years ago)
- Last Synced: 2024-06-11T17:37:14.787Z (7 months ago)
- Language: JavaScript
- Homepage: https://next-keystone-app.now.sh
- Size: 1.57 MB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Static Sites with Next.js & KeystoneJS
## How to use
### Deploy your Keystone instance
This demo is based on the [Keystone JAMStack Plus starter kit](https://github.com/keystonejs/keystone-jamstack-plus).
Click the Deploy button there to get an instance up and running.
### Update your Keystone URL
In this codebase, edit `lib/apollo.js` and alter the `KEYSTONE_URI` to point to
your Keystone instances API (note this should be the url ending in
`/admin/api`).### Add some data
In your Keystone instance's Admin UI, create a couple of pages.
### Build Static Pages
```
yarn build
```This will automatically build static html for every Page you created in Keystone
(plus the index page).### Try it out
```
yarn start
```Visit [`http://localhost:3000`](http://localhost:3000) to see the static
generated pages.## Credits
- This demo is based on the [`with-apollo` Next.js example](https://github.com/zeit/next.js/tree/canary/examples/with-apollo).
- Wouldn't be possible without the Next.js team's hard work on [`unstable_getStaticPaths` & `unstable_getStaticProps`](https://github.com/zeit/next.js/issues/9524)!
- The [KeystoneJS team](https://keystonejs.com) for a great headless CMS