This is a Next.js project bootstrapped with create-next-app
, demonstrating the use of DatoCMS Real-time Updates API.
Demo here: https://next-event-coverage-liveblog.vercel.app/
Click this button to test and deploy this demo project to Vercel, along with a fully configured DatoCMS project and a Github repo:
To learn more about how to integrate DatoCMS with your Next.js project, take a look at the following resources:
First, create a .env.local
and put a NEXT_PUBLIC_DATOCMS_API_TOKEN
env variable containing the API token of your DatoCMS project:
echo NEXT_PUBLIC_DATOCMS_API_TOKEN=<YOUR_API_TOKEN> > .env.local
Then, run the development server:
npm run dev# oryarn dev
Open localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.