The easiest way to manage content with Next.js

Next.js makes it trivial to build scalable and fast React apps with server-side SEO. When it comes to authoring content, pair it with a CMS that’s been built for this use-case.
Try our Next.js demo project now!
  • Best practices
  • 30s setup
Proudly powered by DatoCMS + Next.js:
Multiopticas
https://multiopticas.pt/
Hike One
https://hike.one/
Spotlyte
https://thespotlyte.com/
Virtue
https://www.virtueworldwide.com/
Strava #GiveKudos
https://givekudos.strava.com/

If Next.js is serverless, so your CMS should be

If your content is always fetched from a single geographical location, there’s no point in building a website with a serverless architecture.

DatoCMS offers your content from a CDN with edges all around the globe, minimizing latency.

Read more about our Worldwide CDN

GraphQL Content API

Ask for what you need, get exactly that

Our Content Delivery API is built with GraphQL. That means powerful developer tools, multiple resources in a single request and complete control over the data your website downloads.

Read more about our GraphQL API

{}

State of the art for responsive and progressive images

Serving optimized images is incredibly hard, but using our GraphQL Content API and our React component, you can implement lazy loaded, responsive images in one line of code. Avoid any layout jumping, offer instant previews of images while they load. It’s like magic.

Read more about our React components!
Before
With DatoCMS

Next.js preview mode + DatoCMS Preview API = Content editors happiness

Since Next.js 9.3 you can take advantage of Preview Mode: that means now you can go static (and hyper-fast) with visitors and dynamic with content editors, giving them instant previews for their edits.

That’s the best of both worlds, and pairs wonderfully with our GraphQL Preview endpoint.

// pages/movie.js
import { request } from 'graphql-request'
const query = `{
movie(filter: { title: { eq: "Inception" } }) {
releaseDate
actors {
name
}
}
}`
export async function getStaticProps({ preview }) {
// If context.preview is true, append "/preview" to the API endpoint
// to request draft data instead of published data.
const endpoint = preview ?
'https://graphql.datocms.com/preview' :
'https://graphql.datocms.com/'
const { movie } = await request(endpoint, query);
return {
props: { movie };
}
}
export default MoviePage({ movie }) {
...
}
Acme Inc. - DatoCMS
Create new Blog post
Title
The Best Video Games to Play
Author
Dan Poe
Content
Text
Lorem ipsum....
Gallery
Text
Lorem ipsum....
CTA label
Try it now!
CTA URL
http://...
Quote
Lorem ipsum....
Author
Steve Jobs
Add a new block:
Text
Gallery
Quote
Call to action
Save Blog Post

A component-centric CMS, just like React

Thanks to React, Next.js makes using components easy right from the get-go, and you should expect the same from your CMS. A component-based approach allows developers to clearly divide work amongst themselves and progress without having to rely on each other every step of the way.

Read more about DatoCMS modular blocks

We are so happy with DatoCMS. I'm representing Signifly - an agency currently running 14 projects, and will increase with +10 projects per year.
Tore Heimann
Technical Lead at Signifly
Next.js + DatoCMS demo
pages/homepage.js - Visual Studio Code
Try our Project starter

Start your new Next.js project in minutes

Learn from our best-practice project. Fully configured and deployed on Vercel. Source included.

We power experiences for over half a billion users