jesstelford / next-keystone-app

Static Sites with Next.js + KeystoneJS

Home Page:https://next-keystone-app.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static Sites with Next.js & KeystoneJS

How to use

Deploy your Keystone instance

This demo is based on the Keystone JAMStack Plus starter kit.

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 to see the static generated pages.

Credits

About

Static Sites with Next.js + KeystoneJS

https://next-keystone-app.now.sh


Languages

Language:JavaScript 100.0%