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:

Content Studio showing a live preview of the front page rendered by Next.js
Figure 1. Editors enjoy WYSIWYG editing and live preview, combined with statically generated pages

You will complete the following steps:

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

@enonic/nextjs-adapter

6

@enonic/page-editor

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.


Contents

Contents