Building a Next.js website powered by Enonic XP
Contents
This is a step-by-step tutorial on building and managing Next.js sites, using Enonic as your back-end. The combined set of software and tools used in this tutorial is called Next.XP.
| Just want to see the result? Run the demo to try the finished application without going through the chapters. |
Intro
Next.XP is an opinionated out-of-the-box integration between Enonic XP and Next.js - ideal for building and maintaining websites.
It offers content editors a familiar and hassle-free way of working with content, using structured content, component based landing pages, and extensive control over the site’s URL structure.
When you are done, editors can build and preview pages like this:
You will complete the following steps:
-
Set up Enonic with sample content
-
Create a site and learn about the site concept in Enonic
-
Create a Next.js app from a starter
-
Render content based on its type
-
Activate live preview in Content Studio
-
Generate static pages, and update them when content is published
Prerequisites
Experience with Next.js is nice, but not required. If Enonic is new to you, complete the introduction to Enonic before starting this tutorial.
To follow this tutorial you will need:
-
Node.js 24.16.0 or newer, with npm 10.9.2 or newer
-
Git, and a GitHub account for the live deployment chapter
-
Your favorite code editor
You will install the Enonic CLI in the first chapter.
Tested versions
This version of the tutorial is based on Next.XP 6, and was produced and tested with the following stack:
| Component | Version |
|---|---|
|
Enonic XP |
8.1 |
|
Guillotine |
9 |
|
|
6 |
|
|
2 |
|
Next.js |
16 |
|
React |
19 |
Using an older setup? Select the matching tutorial version from the version menu on this page.
Get started by setting up Enonic.