This is repo is based on a Next.js project based on create-next-app
.
Additionally, it includes the boilerplate and integration code needed to use Enonic as a headless CMS back-end for your Next.js sites.
For a detailed instructions on using this template, visit: https://developer.enonic.com/docs/next.xp
For a live demo of the integration, follow the TLDR;
instructions in the Tutorial above.
In order to authenticate frontend with backend, some tokens are needed. For local development, copy the .env.example
-file and name it .env
. Fill out the variables in it. Use the tutorial for some guidance. This file must never be added to git. Keep the .example
-file.
Requires Enonic XP to run as it serves the data headless to this app. The repo internal-gem-backend
contains the backend parts for this app to work.